pub trait IntoComponents<Unit>: Sized {
// Required method
fn into_components(self) -> (Unit, Unit);
// Provided method
fn to_vec<Type>(self) -> Type
where Type: FromComponents<Unit> { ... }
}Expand description
Converts to a 2d vector in tuple form
Required Methods§
Sourcefn into_components(self) -> (Unit, Unit)
fn into_components(self) -> (Unit, Unit)
Extracts this type’s 2d vector components.
Provided Methods§
Sourcefn to_vec<Type>(self) -> Typewhere
Type: FromComponents<Unit>,
fn to_vec<Type>(self) -> Typewhere
Type: FromComponents<Unit>,
Converts this type to another type using FromComponents and
IntoComponents.
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.