Trait figures::FromComponents
source · pub trait FromComponents<Unit>: Sized {
// Required method
fn from_components(components: (Unit, Unit)) -> Self;
// Provided method
fn from_vec<Type>(other: Type) -> Self
where Type: IntoComponents<Unit> { ... }
}
Expand description
Converts from a 2d vector in tuple form
Required Methods§
sourcefn from_components(components: (Unit, Unit)) -> Self
fn from_components(components: (Unit, Unit)) -> Self
Returns a new instance from the 2d vector components provided.
Provided Methods§
sourcefn from_vec<Type>(other: Type) -> Selfwhere
Type: IntoComponents<Unit>,
fn from_vec<Type>(other: Type) -> Selfwhere
Type: IntoComponents<Unit>,
Converts this type to another type using FromComponents
and
IntoComponents
.
Object Safety§
This trait is not object safe.