Trait rocket_http::ext::IntoCollection
source · pub trait IntoCollection<T>: Sized {
// Required method
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§
sourcefn into_collection<A: Array<Item = T>>(self) -> SmallVec<A>
fn into_collection<A: Array<Item = T>>(self) -> SmallVec<A>
Converts self
into a collection.
Object Safety§
This trait is not object safe.