Trait FailedToIter

Source
pub trait FailedToIter<O, E, M>: Sized {
    // Required method
    fn or_failed_to(self, message: M) -> ProblemIter<Self, M> ;
}
Expand description

Convert Iterator of Result<O, E> to iterator of O and panic on first E with problem message

Required Methods§

Source

fn or_failed_to(self, message: M) -> ProblemIter<Self, M>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I, O, E, M> FailedToIter<O, E, M> for I
where I: Iterator<Item = Result<O, E>>, E: Into<Problem>, M: Display,