Struct FoldWith
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FoldWith<I, U, F> { /* private fields */ }
FoldWith is an iterator that applies a function over an iterator producing a single value.
This struct is created by the fold_with() method on ParallelIterator
Trait Implementations
impl<I: Clone, U: Clone, F: Clone> Clone for FoldWith<I, U, F>
fn clone(&self) -> Self
impl<I: Debug, U: Debug, F> Debug for FoldWith<I, U, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<U, I, F> ParallelIterator for FoldWith<I, U, F>
where
I: ParallelIterator,
F: Fn(U, I::Item) -> U + Sync + Send,
U: Send + Clone,
type Item = U;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,