Struct TryFold

#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct TryFold<I, U, ID, F> { /* private fields */ }

TryFold is an iterator that applies a function over an iterator producing a single value. This struct is created by the try_fold() method on ParallelIterator

Trait Implementations

impl<I: Clone, U: Clone, ID: Clone, F: Clone> Clone for TryFold<I, U, ID, F>

fn clone(&self) -> Self

impl<U, I, ID, F> ParallelIterator for TryFold<I, U, ID, F> where I: ParallelIterator, F: Fn(U::Output, I::Item) -> U + Sync + Send, ID: Fn() -> U::Output + Sync + Send, U: Try + Send,

type Item = U;
fn drive_unindexed<C>(self, consumer: C) -> C::Result
where
    C: UnindexedConsumer<Self::Item>,

impl<U, I: ParallelIterator + Debug, ID, F> Debug for TryFold<I, U, ID, F>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<I, U, ID, F> Freeze for TryFold<I, U, ID, F> where I: Freeze, ID: Freeze, F: Freeze, PhantomData<U>: Freeze,

impl<I, U, ID, F> RefUnwindSafe for TryFold<I, U, ID, F> where I: RefUnwindSafe, ID: RefUnwindSafe, F: RefUnwindSafe, PhantomData<U>: RefUnwindSafe,

impl<I, U, ID, F> Send for TryFold<I, U, ID, F> where I: Send, ID: Send, F: Send, PhantomData<U>: Send,

impl<I, U, ID, F> Sync for TryFold<I, U, ID, F> where I: Sync, ID: Sync, F: Sync, PhantomData<U>: Sync,

impl<I, U, ID, F> Unpin for TryFold<I, U, ID, F> where I: Unpin, ID: Unpin, F: Unpin, PhantomData<U>: Unpin,

impl<I, U, ID, F> UnsafeUnpin for TryFold<I, U, ID, F> where I: UnsafeUnpin, ID: UnsafeUnpin, F: UnsafeUnpin, PhantomData<U>: UnsafeUnpin,

impl<I, U, ID, F> UnwindSafe for TryFold<I, U, ID, F> where I: UnwindSafe, ID: UnwindSafe, F: UnwindSafe, PhantomData<U>: UnwindSafe,

Blanket Implementations

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

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

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

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

impl<T> From<T> for TryFold<I, U, ID, F>

impl<T> IntoEither for TryFold<I, U, ID, F>

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

impl<T> Pointable for TryFold<I, U, ID, F>

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

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

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

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