PtI

Type Alias PtI 

Source
pub type PtI = Point<TPtI>;

Aliased Type§

pub struct PtI {
    pub x: u32,
    pub y: u32,
}

Fields§

§x: u32§y: u32

Implementations§

Source§

impl PtI

Source

pub fn from_signed(p: (i32, i32)) -> RvResult<Self>

Source

pub fn equals<U>(&self, other: (U, U)) -> bool
where U: PartialEq, PtI: Into<(U, U)>,

Trait Implementations§

Source§

impl From<(f32, f32)> for PtI

Source§

fn from(x: (f32, f32)) -> Self

Converts to this type from the input type.
Source§

impl From<(i32, i32)> for PtI

Source§

fn from((x, y): (i32, i32)) -> Self

Converts to this type from the input type.
Source§

impl From<(usize, usize)> for PtI

Source§

fn from(x: (usize, usize)) -> Self

Converts to this type from the input type.
Source§

impl From<Point<f64>> for PtI

Source§

fn from(p: PtF) -> Self

Converts to this type from the input type.
Source§

impl From<Point<i64>> for PtI

Source§

fn from(p: PtS) -> Self

Converts to this type from the input type.