pub struct Fold<I, ID, F> { /* private fields */ }Expand description
Fold adapter for parallel iterators
Trait Implementations§
Source§impl<I, T, ID, F> ParallelIterator for Fold<I, ID, F>
impl<I, T, ID, F> ParallelIterator for Fold<I, ID, F>
Source§fn collect<C>(self) -> Cwhere
C: FromParallelIterator<Self::Item>,
fn collect<C>(self) -> Cwhere
C: FromParallelIterator<Self::Item>,
Collect into a collection
Source§fn reduce<R>(self, _reduce_op: R) -> Option<Self::Item>
fn reduce<R>(self, _reduce_op: R) -> Option<Self::Item>
Reduce items with a reduction function
Source§fn find_any<P>(self, predicate: P) -> Option<Self::Item>
fn find_any<P>(self, predicate: P) -> Option<Self::Item>
Find any item that matches the predicate
Source§fn fold<T, ID, F>(self, identity: ID, fold_op: F) -> Fold<Self, ID, F>
fn fold<T, ID, F>(self, identity: ID, fold_op: F) -> Fold<Self, ID, F>
Fold items with an identity value and accumulator function