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;
}
Expand description
Extension trait for Iterator<Item = Result<O, E>>
to filter one kind of result (and leaving the other as is)