pub struct Point<T = f32> {
    pub x: T,
    pub y: T,
}Expand description
A 2D point.
Fields§
§x: TThe X coordinate.
y: TThe Y coordinate.
Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Point
 
impl Mul<Transformation> for Point
impl<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