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>,

Auto Trait Implementations

impl<I, U, F> Freeze for FoldWith<I, U, F> where I: Freeze, U: Freeze, F: Freeze,

impl<I, U, F> RefUnwindSafe for FoldWith<I, U, F> where I: RefUnwindSafe, U: RefUnwindSafe, F: RefUnwindSafe,

impl<I, U, F> Send for FoldWith<I, U, F> where I: Send, U: Send, F: Send,

impl<I, U, F> Sync for FoldWith<I, U, F> where I: Sync, U: Sync, F: Sync,

impl<I, U, F> Unpin for FoldWith<I, U, F> where I: Unpin, U: Unpin, F: Unpin,

impl<I, U, F> UnsafeUnpin for FoldWith<I, U, F> where I: UnsafeUnpin, U: UnsafeUnpin, F: UnsafeUnpin,

impl<I, U, F> UnwindSafe for FoldWith<I, U, F> where I: UnwindSafe, U: UnwindSafe, F: UnwindSafe,

Blanket Implementations

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

impl<T> Borrow<T> for FoldWith<I, U, F> where T: ?Sized,

impl<T> BorrowMut<T> for FoldWith<I, U, F> where T: ?Sized,

impl<T> CloneToUninit for FoldWith<I, U, F> where T: Clone,

impl<T> From<T> for FoldWith<I, U, F>

impl<T> IntoEither for FoldWith<I, U, F>

impl<T> IntoParallelIterator for FoldWith<I, U, F> where T: ParallelIterator,

impl<T> Pointable for FoldWith<I, U, F>

impl<T> ToOwned for FoldWith<I, U, F> where T: Clone,

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

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

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