Struct streaming_iterator::FilterMap [] [src]

pub struct FilterMap<I, B, F> { /* fields omitted */ }

An iterator which both filters and maps elements of a streaming iterator with a closure.

Trait Implementations

impl<I, B, F> StreamingIterator for FilterMap<I, B, F> where I: StreamingIterator, F: FnMut(&I::Item) -> Option<B>
[src]

The type of the elements being iterated over.

Advances the iterator to the next element. Read more

Returns a reference to the current element of the iterator. Read more

Returns the bounds on the remaining length of the iterator.

Advances the iterator and returns the next value. Read more

Determines if all elements of the iterator satisfy a predicate.

Determines if any elements of the iterator satisfy a predicate.

Borrows an iterator, rather than consuming it. Read more

Produces a normal, non-streaming, iterator by cloning the elements of this iterator.

Consumes the iterator, counting the number of remaining elements and returning it.

Creates an iterator which uses a closure to determine if an element should be yielded.

Creates an iterator which both filters and maps by applying a closure to elements.

Returns the first element of the iterator that satisfies the predicate.

Creates an iterator which is "well behaved" at the beginning and end of iteration Read more

Creates an iterator which transforms elements of this iterator by passing them to a closure.

Creates an iterator which transforms elements of this iterator by passing them to a closure. Read more

Consumes the first n elements of the iterator, returning the next one.

Returns the index of the first element of the iterator matching a predicate.

Creates an iterator which skips the first n elements.

Creates an iterator that skips initial elements matching a predicate.

Creates an iterator which only returns the first n elements.

Creates an iterator which only returns initial elements matching a predicate.