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§

source

fn into_components(self) -> (Unit, Unit)

Extracts this type’s 2d vector components.

Provided Methods§

source

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.

Implementations on Foreign Types§

source§

impl IntoComponents<Lp> for f32

source§

impl IntoComponents<Lp> for i32

source§

impl IntoComponents<Px> for f32

source§

impl IntoComponents<Px> for i32

source§

impl IntoComponents<UPx> for f32

source§

impl IntoComponents<UPx> for u32

source§

impl<Unit> IntoComponents<Unit> for (Unit, Unit)

source§

fn into_components(self) -> Self

Implementors§

source§

impl<Unit> IntoComponents<Unit> for Point<Unit>

source§

impl<Unit> IntoComponents<Unit> for Size<Unit>

source§

impl<Unit> IntoComponents<Unit> for Unitwhere Unit: Copy,