Struct font_types::Point
source · pub struct Point<T> {
pub x: T,
pub y: T,
}
Expand description
Two dimensional point with a generic coordinate type.
Fields§
§x: T
X coordinate.
y: T
Y coordinate.
Implementations§
Trait Implementations§
source§impl<T> AddAssign<Point<T>> for Point<T>where
T: AddAssign,
impl<T> AddAssign<Point<T>> for Point<T>where T: AddAssign,
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl<T> DivAssign<Point<T>> for Point<T>where
T: DivAssign,
impl<T> DivAssign<Point<T>> for Point<T>where T: DivAssign,
source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moresource§impl<T> DivAssign<T> for Point<T>where
T: DivAssign + Copy,
impl<T> DivAssign<T> for Point<T>where T: DivAssign + Copy,
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T> MulAssign<Point<T>> for Point<T>where
T: MulAssign,
impl<T> MulAssign<Point<T>> for Point<T>where T: MulAssign,
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl<T> MulAssign<T> for Point<T>where
T: MulAssign + Copy,
impl<T> MulAssign<T> for Point<T>where T: MulAssign + Copy,
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T: PartialEq> PartialEq<Point<T>> for Point<T>
impl<T: PartialEq> PartialEq<Point<T>> for Point<T>
source§impl<T> SubAssign<Point<T>> for Point<T>where
T: SubAssign,
impl<T> SubAssign<Point<T>> for Point<T>where T: SubAssign,
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more