[][src]Trait resiter::map::Map

pub trait Map<O, E>: Sized {
    fn map_ok<F, O2>(self, _: F) -> MapOk<Self, F>
    where
        F: FnMut(O) -> O2
;
fn map_err<F, E2>(self, _: F) -> MapErr<Self, F>
    where
        F: FnMut(E) -> E2
; }

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

Required methods

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

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

Loading content...

Implementors

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

Loading content...