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>
; }
Expand description

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

Required Methods§

Implementors§