Struct Inspect
struct Inspect<I, F> { ... }
An iterator that calls a function with a reference to each element before yielding it.
This struct is created by the inspect method on Iterator. See its
documentation for more.
Implementations
impl<I> IntoIterator for Inspect<I, F>
fn into_iter(self: Self) -> I
impl<I, F> Freeze for Inspect<I, F>
impl<I, F> RefUnwindSafe for Inspect<I, F>
impl<I, F> Send for Inspect<I, F>
impl<I, F> Sync for Inspect<I, F>
impl<I, F> Unpin for Inspect<I, F>
impl<I, F> UnsafeUnpin for Inspect<I, F>
impl<I, F> UnwindSafe for Inspect<I, F>
impl<I: $crate::clone::Clone, F: $crate::clone::Clone> Clone for Inspect<I, F>
fn clone(self: &Self) -> Inspect<I, F>
impl<I: DoubleEndedIterator, F> DoubleEndedIterator for Inspect<I, F>
fn next_back(self: &mut Self) -> Option<<I as >::Item>fn try_rfold<Acc, Fold, R>(self: &mut Self, init: Acc, fold: Fold) -> R where Self: Sized, Fold: FnMut(Acc, <Self as >::Item) -> R, R: Try<Output = Acc>fn rfold<Acc, Fold>(self: Self, init: Acc, fold: Fold) -> Acc where Fold: FnMut(Acc, <Self as >::Item) -> Acc
impl<I: ExactSizeIterator, F> ExactSizeIterator for Inspect<I, F>
fn len(self: &Self) -> usizefn is_empty(self: &Self) -> bool
impl<I: FusedIterator, F> FusedIterator for Inspect<I, F>
impl<I: Iterator, F> Iterator for Inspect<I, F>
fn next(self: &mut Self) -> Option<<I as >::Item>fn size_hint(self: &Self) -> (usize, Option<usize>)fn try_fold<Acc, Fold, R>(self: &mut Self, init: Acc, fold: Fold) -> R where Self: Sized, Fold: FnMut(Acc, <Self as >::Item) -> R, R: Try<Output = Acc>fn fold<Acc, Fold>(self: Self, init: Acc, fold: Fold) -> Acc where Fold: FnMut(Acc, <Self as >::Item) -> Acc
impl<I: fmt::Debug, F> Debug for Inspect<I, F>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T> Any for Inspect<I, F>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Inspect<I, F>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Inspect<I, F>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Inspect<I, F>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Inspect<I, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Inspect<I, F>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Inspect<I, F>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Inspect<I, F>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>