Trait rocket_http::ext::IntoCollection [−][src]
pub trait IntoCollection<T> { 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
fn into_collection<A: Array<Item = T>>(self) -> SmallVec<A>
[src]
fn into_collection<A: Array<Item = T>>(self) -> SmallVec<A>
[src]Converts self
into a collection.
Implementations on Foreign Types
impl<T> IntoCollection<T> for Vec<T>
[src]
impl<T> IntoCollection<T> for Vec<T>
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 1]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 1]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 2]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 2]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 3]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 3]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 4]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 4]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 5]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 5]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 6]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 6]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 7]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 7]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 8]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 8]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 9]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 9]
[src]impl<'a, T: Clone> IntoCollection<T> for &'a [T; 10]
[src]
impl<'a, T: Clone> IntoCollection<T> for &'a [T; 10]
[src]