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
Auto Trait Implementations§
impl<I, ID, F> Freeze for Fold<I, ID, F>
impl<I, ID, F> RefUnwindSafe for Fold<I, ID, F>
impl<I, ID, F> Send for Fold<I, ID, F>
impl<I, ID, F> Sync for Fold<I, ID, F>
impl<I, ID, F> Unpin for Fold<I, ID, F>
impl<I, ID, F> UnwindSafe for Fold<I, ID, F>
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