Trait resiter::and_then::AndThen

source ·
pub trait AndThen<O, E>: Sized {
    fn and_then_ok<F, O2>(self, _: F) -> AndThenOk<Self, F> 
    where
        F: FnMut(O) -> Result<O2, E>
; fn and_then_err<F, E2>(self, _: F) -> AndThenErr<Self, F>
    where
        F: FnMut(E) -> Result<O, E2>
; }
Expand description

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

Required Methods§

Implementors§