Trait std::slice::CloneableVector
pub trait CloneableVector<T> { fn to_owned(&self) -> ~[T]; fn into_owned(self) -> ~[T]; }
Extension methods for vector slices with cloneable elements
Required Methods
fn to_owned(&self) -> ~[T]
Copy self
into a new owned vector
fn into_owned(self) -> ~[T]
Convert self
into an owned vector, not making a copy if possible.
Implementors
impl<'a, T: Clone> CloneableVector<T> for &'a [T]
impl<T: Clone> CloneableVector<T> for ~[T]