Trait collections::slice::CloneableVector[src]

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

Extension methods for vector slices with cloneable elements

Required Methods

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

Copy self into a new owned vector

fn into_owned(self) -> Vec<T>

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

Implementors