pub struct ParRecIter<I, X, Ix, Ex, R = AdaptiveChunkRunner<DefaultPool>>where
I: IntoIterator,
X: Xap<I = I::Item>,
R: ParRunner,
Ix: IntoIterator<Item = X::I>,
Ex: Fn(&I::Item) -> Ix + Send + Copy,{ /* private fields */ }Expand description
Parallel iterator.
Trait Implementations§
Source§impl<I, X, Ix, Ex, R> ParRec for ParRecIter<I, X, Ix, Ex, R>where
I: IntoIterator,
X: Xap<I = I::Item>,
R: ParRunner,
Ix: IntoIterator<Item = X::I>,
Ex: Fn(&I::Item) -> Ix + Send + Copy,
impl<I, X, Ix, Ex, R> ParRec for ParRecIter<I, X, Ix, Ex, R>where
I: IntoIterator,
X: Xap<I = I::Item>,
R: ParRunner,
Ix: IntoIterator<Item = X::I>,
Ex: Fn(&I::Item) -> Ix + Send + Copy,
Source§fn runner<Q: ParRunner>(
self,
runner: Q,
) -> impl ParRec<Item = Self::Item, Xap = Self::Xap, Input = Self::Input>
fn runner<Q: ParRunner>( self, runner: Q, ) -> impl ParRec<Item = Self::Item, Xap = Self::Xap, Input = Self::Input>
Replaces the current parallel runner with
runner. Read moreSource§fn runner_with_diagnostics(
self,
) -> impl ParRec<Item = Self::Item, Xap = Self::Xap, Input = Self::Input>
fn runner_with_diagnostics( self, ) -> impl ParRec<Item = Self::Item, Xap = Self::Xap, Input = Self::Input>
Wraps the current parallel runner with a diagnostics-enabled runner. Read more
Source§fn num_threads(self, num_threads: impl Into<NumThreads>) -> Self
fn num_threads(self, num_threads: impl Into<NumThreads>) -> Self
Sets the maximum number of worker threads for this computation. Read more
Source§fn chunk_size(self, chunk_size: impl Into<ChunkSize>) -> Self
fn chunk_size(self, chunk_size: impl Into<ChunkSize>) -> Self
Sets chunk size used when pulling items from the concurrent input. Read more
Source§fn iteration_order(self, collect: IterationOrder) -> Self
fn iteration_order(self, collect: IterationOrder) -> Self
Sets iteration order semantics for operations sensitive to ordering. Read more
Source§fn map<Q, H>(
self,
h: H,
) -> impl ParRec<Item = Q, Xap = MapOf<Self::Xap, Q, H>, Input = Self::Input>
fn map<Q, H>( self, h: H, ) -> impl ParRec<Item = Q, Xap = MapOf<Self::Xap, Q, H>, Input = Self::Input>
Maps each element with closure
h. Read moreSource§fn inspect<H>(
self,
h: H,
) -> impl ParRec<Item = Self::Item, Xap = InsOf<Self::Xap, H>, Input = Self::Input>
fn inspect<H>( self, h: H, ) -> impl ParRec<Item = Self::Item, Xap = InsOf<Self::Xap, H>, Input = Self::Input>
Runs
h on each element and forwards the item unchanged. Read moreSource§fn filter<H>(
self,
h: H,
) -> impl ParRec<Item = Self::Item, Xap = FilOf<Self::Xap, H>, Input = Self::Input>
fn filter<H>( self, h: H, ) -> impl ParRec<Item = Self::Item, Xap = FilOf<Self::Xap, H>, Input = Self::Input>
Keeps only elements satisfying predicate
h. Read moreSource§fn filter_map<Q, H>(
self,
h: H,
) -> impl ParRec<Item = Q, Xap = FilMapOf<Self::Xap, Q, H>, Input = Self::Input>
fn filter_map<Q, H>( self, h: H, ) -> impl ParRec<Item = Q, Xap = FilMapOf<Self::Xap, Q, H>, Input = Self::Input>
Maps and filters in a single pass. Read more
Source§fn flat_map<V, H>(
self,
h: H,
) -> impl ParRec<Item = V::Item, Xap = FlatMapOf<Self::Xap, V, H>, Input = Self::Input>
fn flat_map<V, H>( self, h: H, ) -> impl ParRec<Item = V::Item, Xap = FlatMapOf<Self::Xap, V, H>, Input = Self::Input>
Maps each element to an iterator and flattens one level. Read more
Source§fn flatten(
self,
) -> impl ParRec<Item = <Self::Item as IntoIterator>::Item, Xap = FlattenOf<Self::Xap>, Input = Self::Input>where
Self::Item: IntoIterator,
fn flatten(
self,
) -> impl ParRec<Item = <Self::Item as IntoIterator>::Item, Xap = FlattenOf<Self::Xap>, Input = Self::Input>where
Self::Item: IntoIterator,
Flattens one level of nested iterables. Read more
Source§fn reduce<F>(self, f: F) -> Option<Self::Item>
fn reduce<F>(self, f: F) -> Option<Self::Item>
Reduces items into one value using associative reducer
f. Read moreSource§fn fold<B, Id, F>(self, init: Id, f: F) -> Vec<B>
fn fold<B, Id, F>(self, init: Id, f: F) -> Vec<B>
Folds elements into per-thread accumulators and returns them. Read more
Source§fn collect_into<C>(self, dst: &mut C)
fn collect_into<C>(self, dst: &mut C)
Collects all items into
dst. Read moreSource§fn max_by<F>(self, f: F) -> Option<Self::Item>
fn max_by<F>(self, f: F) -> Option<Self::Item>
Returns element considered maximum by comparator
f. Read moreSource§fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
Returns element with maximum key value. Read more
Source§fn min_by<F>(self, f: F) -> Option<Self::Item>
fn min_by<F>(self, f: F) -> Option<Self::Item>
Returns element considered minimum by comparator
f. Read moreSource§fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
Returns element with minimum key value. Read more
Auto Trait Implementations§
impl<I, X, Ix, Ex, R> Freeze for ParRecIter<I, X, Ix, Ex, R>
impl<I, X, Ix, Ex, R> RefUnwindSafe for ParRecIter<I, X, Ix, Ex, R>
impl<I, X, Ix, Ex, R> Send for ParRecIter<I, X, Ix, Ex, R>
impl<I, X, Ix, Ex, R> Sync for ParRecIter<I, X, Ix, Ex, R>
impl<I, X, Ix, Ex, R> Unpin for ParRecIter<I, X, Ix, Ex, R>
impl<I, X, Ix, Ex, R> UnsafeUnpin for ParRecIter<I, X, Ix, Ex, R>
impl<I, X, Ix, Ex, R> UnwindSafe for ParRecIter<I, X, Ix, Ex, R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more