std::iter::DoubleEndedIterator - Rust (original) (raw)
Trait std::iter::DoubleEndedIterator1.0.0 [−] [src]
pub trait DoubleEndedIterator: Iterator { fn next_back(&mut self) -> Option<Self::Item>;
fn [try_rfold](#method.try%5Frfold)<B, F, R>(&mut self, init: B, f: F) -> R
where
F: FnMut(B, Self::Item) -> R,
R: Try<Ok = B>,
{ ... }
fn rfold<B, F>(self, accum: B, f: F) -> B
where
F: FnMut(B, Self::Item) -> B,
{ ... }
fn rfind
(&mut self, predicate: P) -> Option<Self::Item>
where
P: FnMut(&Self::Item) -> bool,
{ ... }
}
An iterator able to yield elements from both ends.
Something that implements DoubleEndedIterator
has one extra capability over something that implements Iterator: the ability to also takeItem
s from the back, as well as the front.
It is important to note that both back and forth work on the same range, and do not cross: iteration is over when they meet in the middle.
In a similar fashion to the Iterator protocol, once aDoubleEndedIterator
returns None
from a next_back()
, calling it again may or may not ever return Some
again. next()
and next_back()
are interchangeable for this purpose.
Basic usage:
let numbers = vec![1, 2, 3, 4, 5, 6];
let mut iter = numbers.iter();
assert_eq!(Some(&1), iter.next()); assert_eq!(Some(&6), iter.next_back()); assert_eq!(Some(&5), iter.next_back()); assert_eq!(Some(&2), iter.next()); assert_eq!(Some(&3), iter.next()); assert_eq!(Some(&4), iter.next()); assert_eq!(None, iter.next()); assert_eq!(None, iter.next_back());Run
fn [next_back](#tymethod.next%5Fback)(&mut self) -> [Option](../../std/option/enum.Option.html "enum std::option::Option")<Self::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")>
Removes and returns an element from the end of the iterator.
Returns None
when there are no more elements.
The trait-level docs contain more details.
Basic usage:
let numbers = vec![1, 2, 3, 4, 5, 6];
let mut iter = numbers.iter();
assert_eq!(Some(&1), iter.next()); assert_eq!(Some(&6), iter.next_back()); assert_eq!(Some(&5), iter.next_back()); assert_eq!(Some(&2), iter.next()); assert_eq!(Some(&3), iter.next()); assert_eq!(Some(&4), iter.next()); assert_eq!(None, iter.next()); assert_eq!(None, iter.next_back());Run
`fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R where
F: FnMut(B, Self::Item) -> R,
R: Try<Ok = B>, `
🔬 This is a nightly-only experimental API. (iterator_try_fold
#45594)
This is the reverse version of try_fold(): it takes elements starting from the back of the iterator.
Basic usage:
#![feature(iterator_try_fold)] let a = ["1", "2", "3"]; let sum = a.iter() .map(|&s| s.parse::()) .try_rfold(0, |acc, x| x.and_then(|y| Ok(acc + y))); assert_eq!(sum, Ok(6));Run
Short-circuiting:
#![feature(iterator_try_fold)] let a = ["1", "rust", "3"]; let mut it = a.iter(); let sum = it .by_ref() .map(|&s| s.parse::()) .try_rfold(0, |acc, x| x.and_then(|y| Ok(acc + y))); assert!(sum.is_err());
assert_eq!(it.next_back(), Some(&"1"));Run
`fn rfold<B, F>(self, accum: B, f: F) -> B where
F: FnMut(B, Self::Item) -> B, `
🔬 This is a nightly-only experimental API. (iter_rfold
#44705)
An iterator method that reduces the iterator's elements to a single, final value, starting from the back.
This is the reverse version of fold(): it takes elements starting from the back of the iterator.
rfold()
takes two arguments: an initial value, and a closure with two arguments: an 'accumulator', and an element. The closure returns the value that the accumulator should have for the next iteration.
The initial value is the value the accumulator will have on the first call.
After applying this closure to every element of the iterator, rfold()
returns the accumulator.
This operation is sometimes called 'reduce' or 'inject'.
Folding is useful whenever you have a collection of something, and want to produce a single value from it.
Basic usage:
#![feature(iter_rfold)] let a = [1, 2, 3];
let sum = a.iter() .rfold(0, |acc, &x| acc + x);
assert_eq!(sum, 6);Run
This example builds a string, starting with an initial value and continuing with each element from the back until the front:
#![feature(iter_rfold)] let numbers = [1, 2, 3, 4, 5];
let zero = "0".to_string();
let result = numbers.iter().rfold(zero, |acc, &x| { format!("({} + {})", x, acc) });
assert_eq!(result, "(1 + (2 + (3 + (4 + (5 + 0)))))");Run
`fn rfind
(&mut self, predicate: P) -> Option<Self::Item> where
P: FnMut(&Self::Item) -> bool, `
🔬 This is a nightly-only experimental API. (iter_rfind
#39480)
Searches for an element of an iterator from the right that satisfies a predicate.
rfind()
takes a closure that returns true
or false
. It applies this closure to each element of the iterator, starting at the end, and if any of them return true
, then rfind()
returns Some(element). If they all returnfalse
, it returns None.
rfind()
is short-circuiting; in other words, it will stop processing as soon as the closure returns true
.
Because rfind()
takes a reference, and many iterators iterate over references, this leads to a possibly confusing situation where the argument is a double reference. You can see this effect in the examples below, with &&x
.
Basic usage:
#![feature(iter_rfind)]
let a = [1, 2, 3];
assert_eq!(a.iter().rfind(|&&x| x == 2), Some(&2));
assert_eq!(a.iter().rfind(|&&x| x == 5), None);Run
Stopping at the first true
:
#![feature(iter_rfind)]
let a = [1, 2, 3];
let mut iter = a.iter();
assert_eq!(iter.rfind(|&&x| x == 2), Some(&2));
assert_eq!(iter.next_back(), Some(&1));Run
impl<B, I, F> DoubleEndedIterator for [FilterMap](../../std/iter/struct.FilterMap.html "struct std::iter::FilterMap")<I, F> where F: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")(<I as [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator")>::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")) -> [Option](../../std/option/enum.Option.html "enum std::option::Option")<B>, I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
- `impl<'a, P> DoubleEndedIterator for RMatchIndices<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<'a, I> DoubleEndedIterator for [&'a mut ](../primitive.reference.html)I where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator") + ?[Sized](../../std/marker/trait.Sized.html "trait std:📑:Sized"),
impl<T> DoubleEndedIterator for [Empty](../../std/iter/struct.Empty.html "struct std::iter::Empty")<T>
impl<A, B> DoubleEndedIterator for [Chain](../../std/iter/struct.Chain.html "struct std::iter::Chain")<A, B> where A: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"), B: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator")<Item = <A as [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator")>::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")>,
- `impl<'a, P> DoubleEndedIterator for Matches<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
- `impl<'a, P> DoubleEndedIterator for std::str::Split<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<'a> DoubleEndedIterator for [Chars](../../std/str/struct.Chars.html "struct std::str::Chars")<'a>
- `impl<'a, P> DoubleEndedIterator for RMatches<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<I> DoubleEndedIterator for [Fuse](../../std/iter/struct.Fuse.html "struct std::iter::Fuse")<I> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
impl<I, F> DoubleEndedIterator for [Inspect](../../std/iter/struct.Inspect.html "struct std::iter::Inspect")<I, F> where F: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")(&<I as [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator")>::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")), I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
impl<I> DoubleEndedIterator for [Fuse](../../std/iter/struct.Fuse.html "struct std::iter::Fuse")<I> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator") + [FusedIterator](../../std/iter/trait.FusedIterator.html "trait std::iter::FusedIterator"),
- `impl<'a, P> DoubleEndedIterator for SplitTerminator<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<A> DoubleEndedIterator for [Repeat](../../std/iter/struct.Repeat.html "struct std::iter::Repeat")<A> where A: [Clone](../../std/clone/trait.Clone.html "trait std::clone::Clone"),
impl<'a, T, P> DoubleEndedIterator for std::slice::[RSplit](../../std/slice/struct.RSplit.html "struct std::slice::RSplit")<'a, T, P> where P: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")([&](../primitive.reference.html)T) -> [bool](../primitive.bool.html),
impl<'a, T> DoubleEndedIterator for std::slice::[Iter](../../std/slice/struct.Iter.html "struct std::slice::Iter")<'a, T>
impl<'a, T> DoubleEndedIterator for std::result::[IterMut](../../std/result/struct.IterMut.html "struct std::result::IterMut")<'a, T>
impl<'a, A> DoubleEndedIterator for std::option::[Iter](../../std/option/struct.Iter.html "struct std::option::Iter")<'a, A>
impl<'a, T, P> DoubleEndedIterator for [SplitMut](../../std/slice/struct.SplitMut.html "struct std::slice::SplitMut")<'a, T, P> where P: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")([&](../primitive.reference.html)T) -> [bool](../primitive.bool.html),
impl<A> DoubleEndedIterator for std::option::[IntoIter](../../std/option/struct.IntoIter.html "struct std::option::IntoIter")<A>
impl<T> DoubleEndedIterator for std::result::[IntoIter](../../std/result/struct.IntoIter.html "struct std::result::IntoIter")<T>
impl<'a, T> DoubleEndedIterator for std::slice::[IterMut](../../std/slice/struct.IterMut.html "struct std::slice::IterMut")<'a, T>
impl<T> DoubleEndedIterator for [Once](../../std/iter/struct.Once.html "struct std::iter::Once")<T>
impl<'a, I, T> DoubleEndedIterator for [Cloned](../../std/iter/struct.Cloned.html "struct std::iter::Cloned")<I> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator")<Item = [&'a ](../primitive.reference.html)T>, T: 'a + [Clone](../../std/clone/trait.Clone.html "trait std::clone::Clone"),
impl<'a, T, P> DoubleEndedIterator for std::slice::[Split](../../std/slice/struct.Split.html "struct std::slice::Split")<'a, T, P> where P: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")([&](../primitive.reference.html)T) -> [bool](../primitive.bool.html),
impl<'a, T> DoubleEndedIterator for std::result::[Iter](../../std/result/struct.Iter.html "struct std::result::Iter")<'a, T>
impl<A> DoubleEndedIterator for std::ops::[Range](../../std/ops/struct.Range.html "struct std::ops::Range")<A> where A: [Step](../../std/iter/trait.Step.html "trait std::iter::Step"),
impl<'a, T> DoubleEndedIterator for [Chunks](../../std/slice/struct.Chunks.html "struct std::slice::Chunks")<'a, T>
impl<'a, A> DoubleEndedIterator for std::option::[IterMut](../../std/option/struct.IterMut.html "struct std::option::IterMut")<'a, A>
- `impl<'a, P> DoubleEndedIterator for MatchIndices<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<B, I, F> DoubleEndedIterator for [Map](../../std/iter/struct.Map.html "struct std::iter::Map")<I, F> where F: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")(<I as [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator")>::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")) -> B, I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
impl<'a> DoubleEndedIterator for [Bytes](../../std/str/struct.Bytes.html "struct std::str::Bytes")<'a>
impl<A, B> DoubleEndedIterator for [Zip](../../std/iter/struct.Zip.html "struct std::iter::Zip")<A, B> where A: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator") + [ExactSizeIterator](../../std/iter/trait.ExactSizeIterator.html "trait std::iter::ExactSizeIterator"), B: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator") + [ExactSizeIterator](../../std/iter/trait.ExactSizeIterator.html "trait std::iter::ExactSizeIterator"),
impl<'a, T> DoubleEndedIterator for [ExactChunksMut](../../std/slice/struct.ExactChunksMut.html "struct std::slice::ExactChunksMut")<'a, T>
impl<I, U, F> DoubleEndedIterator for [FlatMap](../../std/iter/struct.FlatMap.html "struct std::iter::FlatMap")<I, U, F> where F: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")(<I as [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator")>::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")) -> U, I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"), U: [IntoIterator](../../std/iter/trait.IntoIterator.html "trait std::iter::IntoIterator"), <U as [IntoIterator](../../std/iter/trait.IntoIterator.html "trait std::iter::IntoIterator")>::[IntoIter](../../std/iter/trait.IntoIterator.html#associatedtype.IntoIter "type std::iter::IntoIterator::IntoIter"): [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
impl<'a, T> DoubleEndedIterator for [ChunksMut](../../std/slice/struct.ChunksMut.html "struct std::slice::ChunksMut")<'a, T>
impl<'a> DoubleEndedIterator for [LinesAny](../../std/str/struct.LinesAny.html "struct std::str::LinesAny")<'a>
impl<I> DoubleEndedIterator for [Skip](../../std/iter/struct.Skip.html "struct std::iter::Skip")<I> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator") + [ExactSizeIterator](../../std/iter/trait.ExactSizeIterator.html "trait std::iter::ExactSizeIterator"),
impl<'a> DoubleEndedIterator for [CharIndices](../../std/str/struct.CharIndices.html "struct std::str::CharIndices")<'a>
impl<'a, T> DoubleEndedIterator for [Windows](../../std/slice/struct.Windows.html "struct std::slice::Windows")<'a, T>
- `impl<'a, P> DoubleEndedIterator for std::str::RSplit<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<I> DoubleEndedIterator for [Rev](../../std/iter/struct.Rev.html "struct std::iter::Rev")<I> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
impl<'a, T> DoubleEndedIterator for [ExactChunks](../../std/slice/struct.ExactChunks.html "struct std::slice::ExactChunks")<'a, T>
impl<'a> DoubleEndedIterator for [Lines](../../std/str/struct.Lines.html "struct std::str::Lines")<'a>
impl<I, P> DoubleEndedIterator for [Filter](../../std/iter/struct.Filter.html "struct std::iter::Filter")<I, P> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"), P: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")(&<I as [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator")>::[Item](../../std/iter/trait.Iterator.html#associatedtype.Item "type std::iter::Iterator::Item")) -> [bool](../primitive.bool.html),
impl<'a, T, P> DoubleEndedIterator for [RSplitMut](../../std/slice/struct.RSplitMut.html "struct std::slice::RSplitMut")<'a, T, P> where P: [FnMut](../../std/ops/trait.FnMut.html "trait std::ops::FnMut")([&](../primitive.reference.html)T) -> [bool](../primitive.bool.html),
impl<I> DoubleEndedIterator for [Enumerate](../../std/iter/struct.Enumerate.html "struct std::iter::Enumerate")<I> where I: [ExactSizeIterator](../../std/iter/trait.ExactSizeIterator.html "trait std::iter::ExactSizeIterator") + [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator"),
impl<A> DoubleEndedIterator for [RangeInclusive](../../std/ops/struct.RangeInclusive.html "struct std::ops::RangeInclusive")<A> where A: [Step](../../std/iter/trait.Step.html "trait std::iter::Step"),
- `impl<'a, P> DoubleEndedIterator for RSplitTerminator<'a, P> where
P: Pattern<'a>,>::[Searcher](../../std/str/pattern/trait.Pattern.html#associatedtype.Searcher "type std::str::pattern::Pattern::Searcher"): [DoubleEndedSearcher](../../std/str/pattern/trait.DoubleEndedSearcher.html "trait std::str::pattern::DoubleEndedSearcher")<'a>, `
impl<K, V> DoubleEndedIterator for std::collections::btree_map::[IntoIter](../../std/collections/btree%5Fmap/struct.IntoIter.html "struct std::collections::btree_map::IntoIter")<K, V>
impl<'a, T> DoubleEndedIterator for std::collections::linked_list::[IterMut](../../std/collections/linked%5Flist/struct.IterMut.html "struct std::collections::linked_list::IterMut")<'a, T>
impl<'a, I> DoubleEndedIterator for [Splice](../../std/vec/struct.Splice.html "struct std::vec::Splice")<'a, I> where I: [Iterator](../../std/iter/trait.Iterator.html "trait std::iter::Iterator"),
impl<T> DoubleEndedIterator for std::collections::vec_deque::[IntoIter](../../std/collections/vec%5Fdeque/struct.IntoIter.html "struct std::collections::vec_deque::IntoIter")<T>
impl<'a, T> DoubleEndedIterator for std::collections::binary_heap::[Drain](../../std/collections/binary%5Fheap/struct.Drain.html "struct std::collections::binary_heap::Drain")<'a, T> where T: 'a,
impl<'a> DoubleEndedIterator for std:🧵:[Drain](../../std/string/struct.Drain.html "struct std:🧵:Drain")<'a>
impl<'a, K, V> DoubleEndedIterator for std::collections::btree_map::[Iter](../../std/collections/btree%5Fmap/struct.Iter.html "struct std::collections::btree_map::Iter")<'a, K, V> where K: 'a, V: 'a,
impl<'a, T> DoubleEndedIterator for std::collections::vec_deque::[Drain](../../std/collections/vec%5Fdeque/struct.Drain.html "struct std::collections::vec_deque::Drain")<'a, T> where T: 'a,
impl<T> DoubleEndedIterator for std::collections::btree_set::[IntoIter](../../std/collections/btree%5Fset/struct.IntoIter.html "struct std::collections::btree_set::IntoIter")<T>
impl<T> DoubleEndedIterator for std::collections::linked_list::[IntoIter](../../std/collections/linked%5Flist/struct.IntoIter.html "struct std::collections::linked_list::IntoIter")<T>
impl<'a, T> DoubleEndedIterator for std::collections::btree_set::[Iter](../../std/collections/btree%5Fset/struct.Iter.html "struct std::collections::btree_set::Iter")<'a, T>
impl<'a, K, V> DoubleEndedIterator for std::collections::btree_map::[Range](../../std/collections/btree%5Fmap/struct.Range.html "struct std::collections::btree_map::Range")<'a, K, V>
impl<'a, T> DoubleEndedIterator for std::collections::binary_heap::[Iter](../../std/collections/binary%5Fheap/struct.Iter.html "struct std::collections::binary_heap::Iter")<'a, T>
impl<'a, K, V> DoubleEndedIterator for std::collections::btree_map::[IterMut](../../std/collections/btree%5Fmap/struct.IterMut.html "struct std::collections::btree_map::IterMut")<'a, K, V> where K: 'a, V: 'a,
impl<T> DoubleEndedIterator for std::vec::[IntoIter](../../std/vec/struct.IntoIter.html "struct std::vec::IntoIter")<T>
impl<'a, K, V> DoubleEndedIterator for [RangeMut](../../std/collections/btree%5Fmap/struct.RangeMut.html "struct std::collections::btree_map::RangeMut")<'a, K, V>
impl<'a, T> DoubleEndedIterator for std::collections::linked_list::[Iter](../../std/collections/linked%5Flist/struct.Iter.html "struct std::collections::linked_list::Iter")<'a, T>
impl<'a, T> DoubleEndedIterator for std::collections::vec_deque::[IterMut](../../std/collections/vec%5Fdeque/struct.IterMut.html "struct std::collections::vec_deque::IterMut")<'a, T>
impl<'a, K, V> DoubleEndedIterator for [ValuesMut](../../std/collections/btree%5Fmap/struct.ValuesMut.html "struct std::collections::btree_map::ValuesMut")<'a, K, V>
impl<'a, T> DoubleEndedIterator for std::collections::btree_set::[Range](../../std/collections/btree%5Fset/struct.Range.html "struct std::collections::btree_set::Range")<'a, T>
impl<'a, K, V> DoubleEndedIterator for [Values](../../std/collections/btree%5Fmap/struct.Values.html "struct std::collections::btree_map::Values")<'a, K, V>
impl<I> DoubleEndedIterator for [Box](../../std/boxed/struct.Box.html "struct std::boxed::Box")<I> where I: [DoubleEndedIterator](../../std/iter/trait.DoubleEndedIterator.html "trait std::iter::DoubleEndedIterator") + ?[Sized](../../std/marker/trait.Sized.html "trait std:📑:Sized"),
impl<'a, T> DoubleEndedIterator for std::collections::vec_deque::[Iter](../../std/collections/vec%5Fdeque/struct.Iter.html "struct std::collections::vec_deque::Iter")<'a, T>
impl<'a, K, V> DoubleEndedIterator for [Keys](../../std/collections/btree%5Fmap/struct.Keys.html "struct std::collections::btree_map::Keys")<'a, K, V>
impl<T> DoubleEndedIterator for std::collections::binary_heap::[IntoIter](../../std/collections/binary%5Fheap/struct.IntoIter.html "struct std::collections::binary_heap::IntoIter")<T>
impl<'a, T> DoubleEndedIterator for std::vec::[Drain](../../std/vec/struct.Drain.html "struct std::vec::Drain")<'a, T>
impl<'a> DoubleEndedIterator for [SplitWhitespace](../../std/str/struct.SplitWhitespace.html "struct std::str::SplitWhitespace")<'a>
impl DoubleEndedIterator for [EscapeDefault](../../std/ascii/struct.EscapeDefault.html "struct std::ascii::EscapeDefault")
impl DoubleEndedIterator for [Args](../../std/env/struct.Args.html "struct std::env::Args")
impl DoubleEndedIterator for [ArgsOs](../../std/env/struct.ArgsOs.html "struct std::env::ArgsOs")
impl<'a> DoubleEndedIterator for std::path::[Iter](../../std/path/struct.Iter.html "struct std::path::Iter")<'a>
impl<'a> DoubleEndedIterator for [Components](../../std/path/struct.Components.html "struct std::path::Components")<'a>