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

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

Required Methods§

source

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

Converts self into a collection.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

source§

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

source§

impl<T> IntoCollection<T> for Vec<T>

source§

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

Implementors§

source§

impl<T> IntoCollection<T> for T