Struct FoldChunks
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FoldChunks<I, ID, F> { /* private fields */ }
FoldChunks 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() method on IndexedParallelIterator
Trait Implementations
impl<I, ID, U, F> IndexedParallelIterator for FoldChunks<I, ID, F>
where
I: IndexedParallelIterator,
ID: Fn() -> U + Send + Sync,
F: Fn(U, I::Item) -> U + Send + Sync,
U: Send,
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, ID, U, F> ParallelIterator for FoldChunks<I, ID, F>
where
I: IndexedParallelIterator,
ID: Fn() -> U + Send + Sync,
F: Fn(U, I::Item) -> U + Send + Sync,
U: Send,
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, ID: Clone, F: Clone> Clone for FoldChunks<I, ID, F>
fn clone(&self) -> Self
impl<I: Debug, ID, F> Debug for FoldChunks<I, ID, F>
fn fmt(&self, f: &mut Formatter<'_>) -> Result