pub struct Point2<T: CoordInt> {
pub x: Coord<T>,
pub y: Coord<T>,
}Expand description
A point in 2D space.
Fields§
§x: Coord<T>X coordinate.
y: Coord<T>Y coordinate.
Implementations§
Trait Implementations§
impl<T: Copy + CoordInt> Copy for Point2<T>
impl<T: Eq + CoordInt> Eq for Point2<T>
impl<T: CoordInt> StructuralPartialEq for Point2<T>
Auto Trait Implementations§
impl<T> Freeze for Point2<T>where
T: Freeze,
impl<T> RefUnwindSafe for Point2<T>where
T: RefUnwindSafe,
impl<T> Send for Point2<T>
impl<T> Sync for Point2<T>
impl<T> Unpin for Point2<T>where
T: Unpin,
impl<T> UnsafeUnpin for Point2<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Point2<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