Trait resiter::map::Map

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

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

Required Methods§

Implementors§