i_slint_core::lengths

Trait PointLengths

Source
pub trait PointLengths {
    type LengthType;

    // Required methods
    fn x_length(&self) -> Self::LengthType;
    fn y_length(&self) -> Self::LengthType;
}

Required Associated Types§

Required Methods§

Source

fn x_length(&self) -> Self::LengthType

Source

fn y_length(&self) -> Self::LengthType

Implementations on Foreign Types§

Source§

impl<T: Copy, U> PointLengths for Point2D<T, U>

Source§

type LengthType = Length<T, U>

Source§

fn x_length(&self) -> Self::LengthType

Source§

fn y_length(&self) -> Self::LengthType

Source§

impl<T: Copy, U> PointLengths for Vector2D<T, U>

Source§

type LengthType = Length<T, U>

Source§

fn x_length(&self) -> Self::LengthType

Source§

fn y_length(&self) -> Self::LengthType

Implementors§