Trait rocket::http::ext::IntoCollection

source ·
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.

Object Safety§

This trait is not object safe.

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>,

Implementors§

source§

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

source§

impl<T> IntoCollection<T> for T