Struct internal_iterator::Filter [−][src]
pub struct Filter<I, F> { /* fields omitted */ }
Expand description
An iterator that filters the elements of iter
with predicate
.
Trait Implementations
impl<I, F> InternalIterator for Filter<I, F> where
I: InternalIterator,
F: FnMut(&I::Item) -> bool,
impl<I, F> InternalIterator for Filter<I, F> where
I: InternalIterator,
F: FnMut(&I::Item) -> bool,
Applies function to the elements of iterator and returns the first non-none result. Read more
Tests if every element of the iterator matches the predicate. Read more
Tests if any element of the iterator matches the predicate. Read more
fn chain<U>(
self,
other: U
) -> Chain<Self, <U as IntoInternalIterator>::IntoIter> where
U: IntoInternalIterator<Item = Self::Item>,
fn chain<U>(
self,
other: U
) -> Chain<Self, <U as IntoInternalIterator>::IntoIter> where
U: IntoInternalIterator<Item = Self::Item>,
Takes two iterators and returns an iterator that first iterates over the elements of the first iterator, and then over the second one. Read more
Creates an iterator yields cloned elements of the original iterator. Read more
Transforms the iterator into a collection. Read more
Creates an iterator yields copied elements of the original iterator. Read more
Creates an iterator that adds the index to every value of the original iterator. Read more
Creates an iterator which only yields elements matching the predicate. Read more
A combination of InternalIterator::filter
and
InternalIterator::map
. Read more
Returns the first element of the iterator that matches the predicate. Read more
Creates and iterator which maps over the elements and flattens the resulting structure. Read more
Run the closure on each element, while passing that element on. Read more
Transform each element in the iterator. Read more
Returns the maximum element of an iterator. Read more
Returns the maximum element of an iterator using a custom comparer function. Read more
Returns the element that gives the maximum value from the specified function.
Returns the minimum element of an iterator. Read more
Returns the minimum element of an iterator using a custom comparer function. Read more
Returns the element that gives the maximum value from the specified function.
Returns the index of the first element matching the predicate. Read more
Auto Trait Implementations
impl<I, F> RefUnwindSafe for Filter<I, F> where
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, F> UnwindSafe for Filter<I, F> where
F: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Item = <I as InternalIterator>::Item
type Item = <I as InternalIterator>::Item
The type of the elements being iterated over.
type IntoIter = I
type IntoIter = I
Concrete iterator type returned by the conversion.
Convert this type to an internal iterator.