[][src]Trait resiter::filter::Filter

pub trait Filter<O, E>: Sized {
    fn filter_ok<F>(self, _: F) -> FilterOk<Self, F>
    where
        F: FnMut(&O) -> bool
;
fn filter_err<F>(self, _: F) -> FilterErr<Self, F>
    where
        F: FnMut(&E) -> bool
; }

Extension trait for Iterator<Item = Result<O, E>> to filter one kind of result (and leaving the other as is)

Required methods

Important traits for FilterOk<I, F>
fn filter_ok<F>(self, _: F) -> FilterOk<Self, F> where
    F: FnMut(&O) -> bool

Important traits for FilterErr<I, F>
fn filter_err<F>(self, _: F) -> FilterErr<Self, F> where
    F: FnMut(&E) -> bool

Loading content...

Implementors

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

Loading content...