pub struct Empty<T> { /* private fields */ }
Expand description

A simple iterator that returns nothing.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Advances the iterator to the next element from the back of the iterator. Read more
Advances the iterator and returns the next value from the back. Read more
Reduces the iterator’s elements to a single, final value, starting from the back.
Advances the iterator and returns the next mutable value from the back. Read more
Reduces the iterator’s mutable elements to a single, final value, starting from the back.
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
Checks if get() will return None.
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
Consumes two iterators and returns a new iterator that iterates over both in sequence.
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.
Creates an iterator which flattens iterators obtained by applying a closure to elements. Note that the returned iterators must be streaming iterators.
Creates a regular, non-streaming 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
Call a closure on each element, passing the element on. The closure is called upon calls to advance or advance_back, and exactly once per element regardless of how many times (if any) get is called.
Creates an iterator which transforms elements of this iterator by passing them to a closure.
Creates a regular, non-streaming 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.
Creates an iterator which returns elemens in the opposite order.
Reduces the iterator’s elements to a single, final value.
Calls a closure on each element of an iterator.
Returns a mutable reference to the current element of the iterator. Read more
Advances the iterator and returns the next mutable value. Read more
Reduces the iterator’s mutable elements to a single, final value.
Calls a closure on each mutable element of an iterator.
Creates a regular, non-streaming iterator which transforms mutable elements of this iterator by passing them to a closure.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.