File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,17 @@ pub trait DoubleEndedIteratorUtil {
82
82
/// In the future these will be default methods instead of a utility trait.
83
83
impl < A , T : DoubleEndedIterator < A > > DoubleEndedIteratorUtil for T {
84
84
/// Flip the direction of the iterator
85
+ ///
86
+ /// The inverted iterator flips the ends on an iterator that can already
87
+ /// be iterated from the front and from the back.
88
+ ///
89
+ ///
90
+ /// If the iterator also implements RandomAccessIterator, the inverted
91
+ /// iterator is also random access, with the indices starting at the back
92
+ /// of the original iterator.
93
+ ///
94
+ /// Note: Random access with inverted indices still only applies to the first
95
+ /// `uint::max_value` elements of the original iterator.
85
96
#[ inline]
86
97
fn invert ( self ) -> Invert < T > {
87
98
Invert { iter : self }
You can’t perform that action at this time.
0 commit comments