pub trait ResultIteratorExt { type Val; type Err; // Required method fn next_invert(&mut self) -> Result<Option<Self::Val>, Self::Err>; }
Extension trait for iterators that produce Result types
Result
Ok(Val)
Err(Err)
Iterator::next inverted returns a Result.
Iterator::next