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) -> usize
fn 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

Auto Trait Implementations

impl<I, ID, F> Freeze for FoldChunks<I, ID, F> where I: Freeze, F: Freeze, ID: Freeze,

impl<I, ID, F> RefUnwindSafe for FoldChunks<I, ID, F> where I: RefUnwindSafe, F: RefUnwindSafe, ID: RefUnwindSafe,

impl<I, ID, F> Send for FoldChunks<I, ID, F> where I: Send, F: Send, ID: Send,

impl<I, ID, F> Sync for FoldChunks<I, ID, F> where I: Sync, F: Sync, ID: Sync,

impl<I, ID, F> Unpin for FoldChunks<I, ID, F> where I: Unpin, F: Unpin, ID: Unpin,

impl<I, ID, F> UnsafeUnpin for FoldChunks<I, ID, F> where I: UnsafeUnpin, F: UnsafeUnpin, ID: UnsafeUnpin,

impl<I, ID, F> UnwindSafe for FoldChunks<I, ID, F> where I: UnwindSafe, F: UnwindSafe, ID: UnwindSafe,

Blanket Implementations

impl<T> Any for FoldChunks<I, ID, F> where T: 'static + ?Sized,

impl<T> Borrow<T> for FoldChunks<I, ID, F> where T: ?Sized,

impl<T> BorrowMut<T> for FoldChunks<I, ID, F> where T: ?Sized,

impl<T> CloneToUninit for FoldChunks<I, ID, F> where T: Clone,

impl<T> From<T> for FoldChunks<I, ID, F>

impl<T> IntoEither for FoldChunks<I, ID, F>

impl<T> IntoParallelIterator for FoldChunks<I, ID, F> where T: ParallelIterator,

impl<T> Pointable for FoldChunks<I, ID, F>

impl<T> ToOwned for FoldChunks<I, ID, F> where T: Clone,

impl<T, U> Into<U> for FoldChunks<I, ID, F> where U: From<T>,

impl<T, U> TryFrom<U> for FoldChunks<I, ID, F> where U: Into<T>,

impl<T, U> TryInto<U> for FoldChunks<I, ID, F> where U: TryFrom<T>,