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/libextra/priority_queue.rs | |
| 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/libextra/priority_queue.rs')
| -rw-r--r-- | src/libextra/priority_queue.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libextra/priority_queue.rs b/src/libextra/priority_queue.rs index bba7d767732..cf3c265e3fb 100644 --- a/src/libextra/priority_queue.rs +++ b/src/libextra/priority_queue.rs @@ -36,8 +36,8 @@ impl<T:Ord> Mutable for PriorityQueue<T> { impl<T:Ord> PriorityQueue<T> { /// An iterator visiting all values in underlying vector, in /// arbitrary order. - pub fn iter<'a>(&'a self) -> PriorityQueueIterator<'a, T> { - PriorityQueueIterator { iter: self.data.iter() } + pub fn iter<'a>(&'a self) -> Items<'a, T> { + Items { iter: self.data.iter() } } /// Returns the greatest item in the queue - fails if empty @@ -177,11 +177,11 @@ impl<T:Ord> PriorityQueue<T> { } /// PriorityQueue iterator -pub struct PriorityQueueIterator <'a, T> { - priv iter: vec::VecIterator<'a, T>, +pub struct Items <'a, T> { + priv iter: vec::Items<'a, T>, } -impl<'a, T> Iterator<&'a T> for PriorityQueueIterator<'a, T> { +impl<'a, T> Iterator<&'a T> for Items<'a, T> { #[inline] fn next(&mut self) -> Option<(&'a T)> { self.iter.next() } |
