Trait figures::IntoComponents
source · 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
.
Object Safety§
This trait is not object safe.