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) -> TryFold<I, U, ID, F>
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryFold<I, U, ID, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryFold<I, U, ID, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TryFold<I, U, ID, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TryFold<I, U, ID, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for TryFold<I, U, ID, F>
impl<T> IntoParallelIterator for TryFold<I, U, ID, F>
where
T: ParallelIterator,
type Iter = T;type Item = <T as ParallelIterator>::Item;fn into_par_iter(self) -> T
impl<T> Pointable for TryFold<I, U, ID, F>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for TryFold<I, U, ID, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for TryFold<I, U, ID, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TryFold<I, U, ID, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TryFold<I, U, ID, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>