diff options
| author | bors <bors@rust-lang.org> | 2014-01-17 23:41:45 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-17 23:41:45 -0800 |
| commit | 1da2962e2ee6e0ccbe19116f4baea47f7aff0956 (patch) | |
| tree | 017112e24a62f0f7cd046a4fa85f0cf36883fec7 /src/libsyntax/util | |
| parent | 0f8c29f0b4927954fb8e7557eeb232252fcd810c (diff) | |
| parent | 3fd8c8b3306ae33bdc85811aa410ba01967922bc (diff) | |
| download | rust-1da2962e2ee6e0ccbe19116f4baea47f7aff0956.tar.gz rust-1da2962e2ee6e0ccbe19116f4baea47f7aff0956.zip | |
auto merge of #11001 : DaGenix/rust/iter-renaming, r=alexcrichton
Most Iterators renamed to make their naming more consistent. Most significantly, the Iterator and Iter suffixes have been completely removed.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/small_vector.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/util/small_vector.rs b/src/libsyntax/util/small_vector.rs index 51656160d31..6803bb1eaf9 100644 --- a/src/libsyntax/util/small_vector.rs +++ b/src/libsyntax/util/small_vector.rs @@ -7,7 +7,7 @@ // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::vec::MoveIterator; +use std::vec; use std::util; /// A vector type optimized for cases where the size is almost always 0 or 1 @@ -80,7 +80,7 @@ impl<T> SmallVector<T> { } } - pub fn move_iter(self) -> SmallVectorMoveIterator<T> { + pub fn move_iter(self) -> MoveItems<T> { match self { Zero => ZeroIterator, One(v) => OneIterator(v), @@ -89,13 +89,13 @@ impl<T> SmallVector<T> { } } -pub enum SmallVectorMoveIterator<T> { +pub enum MoveItems<T> { priv ZeroIterator, priv OneIterator(T), - priv ManyIterator(MoveIterator<T>), + priv ManyIterator(vec::MoveItems<T>), } -impl<T> Iterator<T> for SmallVectorMoveIterator<T> { +impl<T> Iterator<T> for MoveItems<T> { fn next(&mut self) -> Option<T> { match *self { ZeroIterator => None, |
