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