Struct FoldChunksWith
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FoldChunksWith<I, U, F> { /* private fields */ }
FoldChunksWith is an iterator that groups elements of an underlying iterator and applies a
function over them, producing a single value for each group.
This struct is created by the fold_chunks_with() method on IndexedParallelIterator
Trait Implementations
impl<I, U, F> IndexedParallelIterator for FoldChunksWith<I, U, F>
where
I: IndexedParallelIterator,
U: Send + Clone,
F: Fn(U, I::Item) -> U + Send + Sync,
fn len(&self) -> usizefn drive<C>(self, consumer: C) -> C::Result where C: Consumer<Self::Item>,fn with_producer<CB>(self, callback: CB) -> CB::Output where CB: ProducerCallback<Self::Item>,
impl<I, U, F> ParallelIterator for FoldChunksWith<I, U, F>
where
I: IndexedParallelIterator,
U: Send + Clone,
F: Fn(U, I::Item) -> U + Send + Sync,
type Item = U;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: Consumer<U>,fn opt_len(&self) -> Option<usize>
impl<I: Clone, U: Clone, F: Clone> Clone for FoldChunksWith<I, U, F>
fn clone(&self) -> Self
impl<I: Debug, U: Debug, F> Debug for FoldChunksWith<I, U, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result