Trait core::iter::DoubleEndedIterator [] [src]

pub trait DoubleEndedIterator: Iterator {
    fn next_back(&mut self) -> Option<Self::Item>;
}

A range iterator able to yield elements from both ends

A DoubleEndedIterator`DoubleEndedIteratorcan be thought of as a deque in that` can be thought of as a deque in that next()`next()and` and next_back()`next_back()` exhaust elements from the same range, and do not work independently of each other.

Required Methods

fn next_back(&mut self) -> Option<Self::Item>

Yields an element from the end of the range, returning None`None` if the range is empty.

Implementors