pub trait IntoCollection<T>: Sized {
    // Required method
    fn into_collection<A>(self) -> SmallVec<A>
       where A: Array<Item = T>;
}
Expand description

Trait implemented by types that can be converted into a collection.

Required Methods§

source

fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,

Converts self into a collection.

Implementations on Foreign Types§

source§

impl<T> IntoCollection<T> for &[T]where T: Clone,

source§

fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,

source§

impl<T, const N: usize> IntoCollection<T> for [T; N]

source§

fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,

source§

impl<T> IntoCollection<T> for Vec<T, Global>

source§

fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,

Implementors§

source§

impl<T> IntoCollection<T> for T