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.
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.