Struct process_results::Fallible [−][src]
pub struct Fallible<I, C> { /* fields omitted */ }Implementations
“Lift” a function of the values of an iterator so that it can process an iterator of Result
values instead.
f is a closure that takes RawIter, an iterator adapter that wraps the inner
iterator and implements Iterator<Item=I::OK>.
Returns either the returned value of closure f wrapped in the Ok variant, or the error
wrapped in Err variant, in a way specified by C’s implementation of ErrorCollector.
pub fn process_no_discard<F, B>(self, f: F) -> (B, Option<C::Collection>) where
F: FnOnce(RawIter<'_, I, C>) -> B,
pub fn process_no_discard<F, B>(self, f: F) -> (B, Option<C::Collection>) where
F: FnOnce(RawIter<'_, I, C>) -> B,
“Lift” a function of the values of an iterator so that it can process an iterator of Result
values instead.
f is a closure that takes RawIter, an iterator adapter that wraps the inner
iterator and implements Iterator<Item=I::OK>.
Returns both the returned value of closure f and None if the wrapped iterator runs to
completion; otherwise, returns the intermediate value produced so far and the errors in a
way specified by C’s implementation of ErrorCollector
Trait Implementations
Auto Trait Implementations
impl<I, C> RefUnwindSafe for Fallible<I, C> where
C: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, C> UnwindSafe for Fallible<I, C> where
C: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more