Struct streaming_iterator::Filter [] [src]

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

A streaming iterator which filters the elements of a streaming iterator with a predicate.

Trait Implementations

impl<I: Debug, F: Debug> Debug for Filter<I, F>
[src]

[src]

Formats the value using the given formatter. Read more

impl<I, F> StreamingIterator for Filter<I, F> where
    I: StreamingIterator,
    F: FnMut(&I::Item) -> bool, 
[src]

The type of the elements being iterated over.

[src]

Advances the iterator to the next element. Read more

[src]

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

[src]

Returns the bounds on the remaining length of the iterator.

[src]

Reduces the iterator's elements to a single, final value.

[src]

Advances the iterator and returns the next value. Read more

[src]

Determines if all elements of the iterator satisfy a predicate.

[src]

Determines if any elements of the iterator satisfy a predicate.

[src]

Borrows an iterator, rather than consuming it. Read more

Important traits for Cloned<I>
[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Creates an iterator which skips the first n elements.

[src]

Creates an iterator that skips initial elements matching a predicate.

[src]

Creates an iterator which only returns the first n elements.

[src]

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

[src]

Creates an iterator which returns elemens in the opposite order.

[src]

Calls a closure on each element of an iterator.

impl<I, F> DoubleEndedStreamingIterator for Filter<I, F> where
    I: DoubleEndedStreamingIterator,
    F: FnMut(&I::Item) -> bool, 
[src]

[src]

Advances the iterator to the next element from the back of the iterator. Read more

[src]

Reduces the iterator's elements to a single, final value, starting from the back.

[src]

Advances the iterator and returns the next value from the back. Read more

Auto Trait Implementations

impl<I, F> Send for Filter<I, F> where
    F: Send,
    I: Send

impl<I, F> Sync for Filter<I, F> where
    F: Sync,
    I: Sync