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) -> FilterMapOk<I, F>

Auto Trait Implementations

impl<I, F> Freeze for FilterMapOk<I, F> where I: Freeze, F: Freeze,

impl<I, F> RefUnwindSafe for FilterMapOk<I, F> where I: RefUnwindSafe, F: RefUnwindSafe,

impl<I, F> Send for FilterMapOk<I, F> where I: Send, F: Send,

impl<I, F> Sync for FilterMapOk<I, F> where I: Sync, F: Sync,

impl<I, F> Unpin for FilterMapOk<I, F> where I: Unpin, F: Unpin,

impl<I, F> UnsafeUnpin for FilterMapOk<I, F> where I: UnsafeUnpin, F: UnsafeUnpin,

impl<I, F> UnwindSafe for FilterMapOk<I, F> where I: UnwindSafe, F: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for FilterMapOk<I, F> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for FilterMapOk<I, F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for FilterMapOk<I, F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for FilterMapOk<I, F> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for FilterMapOk<I, F> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for FilterMapOk<I, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for FilterMapOk<I, F>

impl<T> Itertools for FilterMapOk<I, F> where T: Iterator + ?Sized,

impl<T> ToOwned for FilterMapOk<I, F> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for FilterMapOk<I, F> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for FilterMapOk<I, F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for FilterMapOk<I, F> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>