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§
Sourcefn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts self
into a collection.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.