syntax: fix fallout from using ptr::P.
This commit is contained in:
parent
d6fb338d01
commit
ccd8498afb
45 changed files with 1534 additions and 1693 deletions
|
|
@ -11,7 +11,7 @@
|
|||
use std::fmt;
|
||||
use std::default::Default;
|
||||
use std::hash;
|
||||
use std::{mem, raw, ptr, slice};
|
||||
use std::{mem, raw, ptr, slice, vec};
|
||||
use serialize::{Encodable, Decodable, Encoder, Decoder};
|
||||
|
||||
/// A non-growable owned slice. This would preferably become `~[T]`
|
||||
|
|
@ -105,6 +105,10 @@ impl<T> OwnedSlice<T> {
|
|||
self.as_slice().iter()
|
||||
}
|
||||
|
||||
pub fn move_iter(self) -> vec::MoveItems<T> {
|
||||
self.into_vec().move_iter()
|
||||
}
|
||||
|
||||
pub fn map<U>(&self, f: |&T| -> U) -> OwnedSlice<U> {
|
||||
self.iter().map(f).collect()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue