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.

“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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.