GetErrors

Trait GetErrors 

Source
pub trait GetErrors<T, E>: Sized {
    // Required method
    fn errors(self) -> FilterMap<Self, fn(Result<T, E>) -> Option<E>>;
}
Expand description

Extension trait for Iterator<Item = Result<T, E>> to get all Es

Required Methods§

Source

fn errors(self) -> FilterMap<Self, fn(Result<T, E>) -> Option<E>>

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<T, E, I> GetErrors<T, E> for I
where I: Iterator<Item = Result<T, E>> + Sized,