[][src]Trait resiter::filter_map::FilterMap

pub trait FilterMap<O, E>: Sized {
    fn filter_map_ok<F, O2>(self, _: F) -> FilterMapOk<Self, F>
    where
        F: FnMut(O) -> Option<O2>
;
fn filter_map_err<F, E2>(self, _: F) -> FilterMapErr<Self, F>
    where
        F: FnMut(E) -> Option<E2>
; }

Extension trait for Iterator<Item = Result<O, E>> to selectively transform and map Oks and Errors.

Required methods

Important traits for FilterMapOk<I, F>
fn filter_map_ok<F, O2>(self, _: F) -> FilterMapOk<Self, F> where
    F: FnMut(O) -> Option<O2>, 

Important traits for FilterMapErr<I, F>
fn filter_map_err<F, E2>(self, _: F) -> FilterMapErr<Self, F> where
    F: FnMut(E) -> Option<E2>, 

Loading content...

Implementors

impl<I, O, E> FilterMap<O, E> for I where
    I: Iterator<Item = Result<O, E>> + Sized
[src]

Loading content...