MCPcopy Create free account
hub / github.com/docknetwork/crypto / par_iter

Method par_iter

utils/src/pairs.rs:117–125  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

115 /// Returns a parallel iterator over zipped pairs.
116 #[cfg(feature = "parallel")]
117 pub fn par_iter(&self) -> <Self as rayon::prelude::IntoParallelIterator>::Iter
118 where
119 Left: Sync,
120 Right: Sync,
121 {
122 use rayon::prelude::*;
123
124 self.left.par_iter().zip(self.right.par_iter())
125 }
126
127 fn build_if_equal(left: &'left [Left], right: &'right [Right]) -> Option<Self> {
128 (left.len() == right.len()).then_some(Self { right, left })

Callers 1

into_par_iterMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected