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]

Converts self into a collection.

Implementations on Foreign Types

impl<T> IntoCollection<T> for Vec<T>[src]

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

fn mapped<U, F: FnMut(T) -> U, A: Array<Item = U>>(self, f: F) -> SmallVec<A>[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

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

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

fn mapped<U, F, A: Array<Item = U>>(self, f: F) -> SmallVec<A> where
    F: FnMut(T) -> U, 
[src]

Implementors

impl<T> IntoCollection<T> for T[src]

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

fn mapped<U, F: FnMut(T) -> U, A: Array<Item = U>>(self, f: F) -> SmallVec<A>[src]