Struct FilterOk
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FilterOk<I, F> { /* private fields */ }
An iterator adapter to filter values within a nested Result::Ok.
See .filter_ok() for more information.
Trait Implementations
impl<I, F> Debug for FilterOk<I, F>
where
I: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, F, T, E> DoubleEndedIterator for FilterOk<I, F>
where
I: DoubleEndedIterator<Item = Result<T, E>>,
F: FnMut(&T) -> bool,
fn next_back(&mut self) -> Option<Self::Item>fn rfold<Acc, Fold>(self, init: Acc, fold_f: Fold) -> Acc where Fold: FnMut(Acc, Self::Item) -> Acc,
impl<I, F, T, E> FusedIterator for FilterOk<I, F>
where
I: FusedIterator<Item = Result<T, E>>,
F: FnMut(&T) -> bool,
impl<I, F, T, E> Iterator for FilterOk<I, F>
where
I: Iterator<Item = Result<T, E>>,
F: FnMut(&T) -> bool,
type Item = Result<T, E>;fn next(&mut self) -> Option<Self::Item>fn size_hint(&self) -> (usize, Option<usize>)fn fold<Acc, Fold>(self, init: Acc, fold_f: Fold) -> Acc where Fold: FnMut(Acc, Self::Item) -> Acc,fn collect<C>(self) -> C where C: FromIterator<Self::Item>,
impl<I: Clone, F: Clone> Clone for FilterOk<I, F>
fn clone(&self) -> Self