Struct internal_iterator::Inspect [−][src]
An iterator that calls a function with a reference to each element before yielding it.
Trait Implementations
impl<I, F> InternalIterator for Inspect<I, F> where
I: InternalIterator,
F: FnMut(&I::Item),
[src]
I: InternalIterator,
F: FnMut(&I::Item),
type Item = I::Item
Type of items yielded by the iterator.
fn find_map<R, C>(self, consumer: C) -> Option<R> where
C: FnMut(Self::Item) -> Option<R>,
[src]
C: FnMut(Self::Item) -> Option<R>,
fn all<F>(self, f: F) -> bool where
F: FnMut(Self::Item) -> bool,
[src]
F: FnMut(Self::Item) -> bool,
fn any<F>(self, f: F) -> bool where
F: FnMut(Self::Item) -> bool,
[src]
F: FnMut(Self::Item) -> bool,
fn chain<U>(
self,
other: U
) -> Chain<Self, <U as IntoInternalIterator>::IntoIter> where
U: IntoInternalIterator<Item = Self::Item>,
[src]
self,
other: U
) -> Chain<Self, <U as IntoInternalIterator>::IntoIter> where
U: IntoInternalIterator<Item = Self::Item>,
fn cloned<'a, T: 'a>(self) -> Cloned<Self> where
Self: InternalIterator<Item = &'a T>,
T: Clone,
[src]
Self: InternalIterator<Item = &'a T>,
T: Clone,
fn collect<B>(self) -> B where
B: FromInternalIterator<Self::Item>,
[src]
B: FromInternalIterator<Self::Item>,
fn copied<'a, T: 'a>(self) -> Copied<Self> where
Self: InternalIterator<Item = &'a T>,
T: Copy,
[src]
Self: InternalIterator<Item = &'a T>,
T: Copy,
fn count(self) -> usize
[src]
fn enumerate(self) -> Enumerate<Self>
[src]
fn filter<P>(self, predicate: P) -> Filter<Self, P> where
P: FnMut(&Self::Item) -> bool,
[src]
P: FnMut(&Self::Item) -> bool,
fn filter_map<T, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Option<T>,
[src]
F: FnMut(Self::Item) -> Option<T>,
fn find<F>(self, f: F) -> Option<Self::Item> where
F: FnMut(&Self::Item) -> bool,
[src]
F: FnMut(&Self::Item) -> bool,
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, F> where
F: FnMut(Self::Item) -> U,
U: IntoInternalIterator,
[src]
F: FnMut(Self::Item) -> U,
U: IntoInternalIterator,
fn for_each<F>(self, f: F) where
F: FnMut(Self::Item),
[src]
F: FnMut(Self::Item),
fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnMut(&Self::Item),
[src]
F: FnMut(&Self::Item),
fn last(self) -> Option<Self::Item>
[src]
fn map<F, T>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item) -> T,
[src]
F: FnMut(Self::Item) -> T,
fn max(self) -> Option<Self::Item> where
Self::Item: Ord,
[src]
Self::Item: Ord,
fn max_by<F>(self, compare: F) -> Option<Self::Item> where
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
[src]
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
fn min(self) -> Option<Self::Item> where
Self::Item: Ord,
[src]
Self::Item: Ord,
fn min_by<F>(self, compare: F) -> Option<Self::Item> where
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
[src]
F: FnMut(&Self::Item, &Self::Item) -> Ordering,
fn next(self) -> Option<Self::Item>
[src]
fn nth(self, n: usize) -> Option<Self::Item>
[src]
fn position<F>(self, f: F) -> Option<usize> where
F: FnMut(Self::Item) -> bool,
[src]
F: FnMut(Self::Item) -> bool,
fn skip(self, n: usize) -> Skip<Self>
[src]
fn take(self, n: usize) -> Take<Self>
[src]
Auto Trait Implementations
impl<I, F> RefUnwindSafe for Inspect<I, F> where
F: RefUnwindSafe,
I: RefUnwindSafe,
[src]
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, F> Send for Inspect<I, F> where
F: Send,
I: Send,
[src]
F: Send,
I: Send,
impl<I, F> Sync for Inspect<I, F> where
F: Sync,
I: Sync,
[src]
F: Sync,
I: Sync,
impl<I, F> Unpin for Inspect<I, F> where
F: Unpin,
I: Unpin,
[src]
F: Unpin,
I: Unpin,
impl<I, F> UnwindSafe for Inspect<I, F> where
F: UnwindSafe,
I: UnwindSafe,
[src]
F: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoInternalIterator for I where
I: InternalIterator,
[src]
I: InternalIterator,
type Item = <I as InternalIterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Concrete iterator type returned by the conversion.
pub fn into_internal_iter(Self) -> <I as IntoInternalIterator>::IntoIter
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,