[src]

Trait std::vec::CopyableVector

pub trait CopyableVector<T> {
    fn to_owned(&self) -> ~[T];
    fn into_owned(self) -> ~[T];
}

Extension methods for vector slices with copyable elements

Required Methods

fn to_owned(&self) -> ~[T]

Copy self into a new owned vector

fn into_owned(self) -> ~[T]

Convert self into a owned vector, not making a copy if possible.

Implementors