Trait core::iter::DoubleEndedIteratorExtUnstable
[-]
[+]
[src]
pub trait DoubleEndedIteratorExt<A>: DoubleEndedIterator<A> { fn rev(self) -> Rev<Self> { ... } }
Extension methods for double-ended iterators.
Provided Methods
fn rev(self) -> Rev<Self>
Change the direction of the iterator
The flipped iterator swaps the ends on an iterator that can already be iterated from the front and from the back.
If the iterator also implements RandomAccessIterator, the flipped iterator is also random access, with the indices starting at the back of the original iterator.
Note: Random access with flipped indices still only applies to the first
uint::MAX
elements of the original iterator.
Implementors
impl<A, I> DoubleEndedIteratorExt<A> for I where I: DoubleEndedIterator<A>