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) -> FilterOk<I, F>
Auto Trait Implementations
impl<I, F> Freeze for FilterOk<I, F>
where
I: Freeze,
F: Freeze,
impl<I, F> RefUnwindSafe for FilterOk<I, F>
where
I: RefUnwindSafe,
F: RefUnwindSafe,
impl<I, F> Send for FilterOk<I, F>
where
I: Send,
F: Send,
impl<I, F> Sync for FilterOk<I, F>
where
I: Sync,
F: Sync,
impl<I, F> Unpin for FilterOk<I, F>
where
I: Unpin,
F: Unpin,
impl<I, F> UnsafeUnpin for FilterOk<I, F>
where
I: UnsafeUnpin,
F: UnsafeUnpin,
impl<I, F> UnwindSafe for FilterOk<I, F>
where
I: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for FilterOk<I, F>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for FilterOk<I, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FilterOk<I, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FilterOk<I, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for FilterOk<I, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for FilterOk<I, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for FilterOk<I, F>
impl<T> Itertools for FilterOk<I, F>
where
T: Iterator + ?Sized,
impl<T> ToOwned for FilterOk<I, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for FilterOk<I, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FilterOk<I, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for FilterOk<I, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>