Expand description
General purpose coordinate
Fields§
§x: i32
§y: i32
Implementations§
Trait Implementations§
source§impl<T> AddAssign<T> for Coordwhere
Coord: Add<T, Output = Coord>,
impl<T> AddAssign<T> for Coordwhere
Coord: Add<T, Output = Coord>,
source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moresource§impl<T> DivAssign<T> for Coordwhere
Coord: Div<T, Output = Coord>,
impl<T> DivAssign<T> for Coordwhere
Coord: Div<T, Output = Coord>,
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T> MulAssign<T> for Coordwhere
Coord: Mul<T, Output = Coord>,
impl<T> MulAssign<T> for Coordwhere
Coord: Mul<T, Output = Coord>,
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl Ord for Coord
impl Ord for Coord
source§impl PartialOrd<Coord> for Coord
impl PartialOrd<Coord> for Coord
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> SubAssign<T> for Coordwhere
Coord: Sub<T, Output = Coord>,
impl<T> SubAssign<T> for Coordwhere
Coord: Sub<T, Output = Coord>,
source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read more