rm MutableIter
replaced with mutable implementations of Iterator
This commit is contained in:
parent
8111701604
commit
d68be89e69
8 changed files with 6 additions and 33 deletions
|
@ -2487,29 +2487,6 @@ impl<A> old_iter::BaseIter<A> for @[A] {
|
|||
fn size_hint(&self) -> Option<uint> { Some(self.len()) }
|
||||
}
|
||||
|
||||
impl<'self,A> old_iter::MutableIter<A> for &'self mut [A] {
|
||||
#[inline(always)]
|
||||
fn each_mut<'a>(&'a mut self, blk: &fn(v: &'a mut A) -> bool) -> bool {
|
||||
self.mut_iter().advance(blk)
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME(#4148): This should be redundant
|
||||
impl<A> old_iter::MutableIter<A> for ~[A] {
|
||||
#[inline(always)]
|
||||
fn each_mut<'a>(&'a mut self, blk: &fn(v: &'a mut A) -> bool) -> bool {
|
||||
self.mut_iter().advance(blk)
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME(#4148): This should be redundant
|
||||
impl<A> old_iter::MutableIter<A> for @mut [A] {
|
||||
#[inline(always)]
|
||||
fn each_mut(&mut self, blk: &fn(v: &mut A) -> bool) -> bool {
|
||||
self.mut_iter().advance(blk)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'self,A> old_iter::ExtendedIter<A> for &'self [A] {
|
||||
pub fn eachi(&self, blk: &fn(uint, v: &A) -> bool) -> bool {
|
||||
old_iter::eachi(self, blk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue