Struct TryFoldWith
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct TryFoldWith<I, U: Try, F> { /* private fields */ }
TryFoldWith is an iterator that applies a function over an iterator producing a single value.
This struct is created by the try_fold_with() method on ParallelIterator
Trait Implementations
impl<I, U, F> Debug for TryFoldWith<I, U, F>
where
I: Debug,
U: Try<Output: Debug>,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I: Clone, U: Clone + Try, F: Clone> Clone for TryFoldWith<I, U, F>
where
U::Output: Clone,
fn clone(&self) -> TryFoldWith<I, U, F>
impl<U, I, F> ParallelIterator for TryFoldWith<I, U, F>
where
I: ParallelIterator,
F: Fn(U::Output, I::Item) -> U + Sync + Send,
U: Try<Output: Clone + Send> + Send,
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 TryFoldWith<I, U, F>
where
I: Freeze,
<U as Try>::Output: Freeze,
F: Freeze,
impl<I, U, F> RefUnwindSafe for TryFoldWith<I, U, F>
where
I: RefUnwindSafe,
<U as Try>::Output: RefUnwindSafe,
F: RefUnwindSafe,
impl<I, U, F> Send for TryFoldWith<I, U, F>
where
I: Send,
<U as Try>::Output: Send,
F: Send,
impl<I, U, F> Sync for TryFoldWith<I, U, F>
where
I: Sync,
<U as Try>::Output: Sync,
F: Sync,
impl<I, U, F> Unpin for TryFoldWith<I, U, F>
where
I: Unpin,
<U as Try>::Output: Unpin,
F: Unpin,
impl<I, U, F> UnsafeUnpin for TryFoldWith<I, U, F>
where
I: UnsafeUnpin,
<U as Try>::Output: UnsafeUnpin,
F: UnsafeUnpin,
impl<I, U, F> UnwindSafe for TryFoldWith<I, U, F>
where
I: UnwindSafe,
<U as Try>::Output: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for TryFoldWith<I, U, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryFoldWith<I, U, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryFoldWith<I, U, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for TryFoldWith<I, U, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for TryFoldWith<I, U, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for TryFoldWith<I, U, F>
impl<T> IntoParallelIterator for TryFoldWith<I, U, F>
where
T: ParallelIterator,
type Iter = T;type Item = <T as ParallelIterator>::Item;fn into_par_iter(self) -> T
impl<T> Pointable for TryFoldWith<I, U, 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 TryFoldWith<I, U, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for TryFoldWith<I, U, 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 TryFoldWith<I, U, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TryFoldWith<I, U, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>