pub trait IntoCollection<T> {
    // 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§

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

Converts self into a collection.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<'a, T> IntoCollection<T> for &'a [T; 1]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 2]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 3]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 4]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 5]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 6]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 7]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 8]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 9]
where T: Clone,

§

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

§

impl<'a, T> IntoCollection<T> for &'a [T; 10]
where T: Clone,

§

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

§

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

§

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

§

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

§

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

Implementors§

§

impl<T> IntoCollection<T> for T