result

Trait ResultIteratorExt

Source
pub trait ResultIteratorExt {
    type Val;
    type Err;

    // Required method
    fn next_invert(&mut self) -> Result<Option<Self::Val>, Self::Err>;
}
Expand description

Extension trait for iterators that produce Result types

Required Associated Types§

Source

type Val

Ok(Val)

Source

type Err

Err(Err)

Required Methods§

Source

fn next_invert(&mut self) -> Result<Option<Self::Val>, Self::Err>

Iterator::next inverted returns a Result.

Implementors§

Source§

impl<T, E, I: Iterator<Item = Result<T, E>>> ResultIteratorExt for I

Source§

type Val = T

Source§

type Err = E