Struct FilterMapOk
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct FilterMapOk<I, F> { /* private fields */ }
An iterator adapter to filter and apply a transformation on values within a nested Result::Ok.
See .filter_map_ok() for more information.
Trait Implementations
impl<I, F> Debug for FilterMapOk<I, F>
where
I: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<I, F, T, U, E> DoubleEndedIterator for FilterMapOk<I, F>
where
I: DoubleEndedIterator<Item = Result<T, E>>,
F: FnMut(T) -> Option<U>,
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, U, E> FusedIterator for FilterMapOk<I, F>
where
I: FusedIterator<Item = Result<T, E>>,
F: FnMut(T) -> Option<U>,
impl<I, F, T, U, E> Iterator for FilterMapOk<I, F>
where
I: Iterator<Item = Result<T, E>>,
F: FnMut(T) -> Option<U>,
type Item = Result<U, 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 FilterMapOk<I, F>
fn clone(&self) -> Self