Trait std::slice::CloneableVector[src]

pub trait CloneableVector<T> {
    fn to_owned<T>(&self) -> Vec<T>;
    fn into_owned<T>(self) -> Vec<T>;
}

Extension methods for vector slices with cloneable elements

Required Methods

fn to_owned<T>(&self) -> Vec<T>

Copy self into a new owned vector

fn into_owned<T>(self) -> Vec<T>

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

Implementors