Struct font_types::Point
source · #[repr(C)]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 for Point<T>where
T: AddAssign,
impl<T> AddAssign 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<T> for Point<T>
impl<T> DivAssign<T> for Point<T>
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T> DivAssign for Point<T>where
T: DivAssign,
impl<T> DivAssign 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> MulAssign<T> for Point<T>
impl<T> MulAssign<T> for Point<T>
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T> MulAssign for Point<T>where
T: MulAssign,
impl<T> MulAssign 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: PartialEq> PartialEq for Point<T>
impl<T: PartialEq> PartialEq for Point<T>
source§impl<T> SubAssign for Point<T>where
T: SubAssign,
impl<T> SubAssign 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 moreimpl<T: Copy> Copy for Point<T>
impl<T: Eq> Eq for Point<T>
impl<T> StructuralPartialEq for Point<T>
Auto Trait Implementations§
impl<T> Freeze for Point<T>where
T: Freeze,
impl<T> RefUnwindSafe for Point<T>where
T: RefUnwindSafe,
impl<T> Send for Point<T>where
T: Send,
impl<T> Sync for Point<T>where
T: Sync,
impl<T> Unpin for Point<T>where
T: Unpin,
impl<T> UnwindSafe for Point<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more