Trait rocket::http::ext::IntoCollection

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§

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<T> IntoCollection<T> for &[T]
where T: Clone,

§

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

§

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

§

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

Implementors§

§

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

§

impl<T> IntoCollection<T> for T