pub struct PointBase<T: Copy> {
pub x: T,
pub y: T,
}Expand description
A 2D point.
Port of C++ point_base<T>.
Fields§
§x: T§y: TImplementations§
Trait Implementations§
impl<T: Copy + Copy> Copy for PointBase<T>
impl<T: Copy> StructuralPartialEq for PointBase<T>
Auto Trait Implementations§
impl<T> Freeze for PointBase<T>where
T: Freeze,
impl<T> RefUnwindSafe for PointBase<T>where
T: RefUnwindSafe,
impl<T> Send for PointBase<T>where
T: Send,
impl<T> Sync for PointBase<T>where
T: Sync,
impl<T> Unpin for PointBase<T>where
T: Unpin,
impl<T> UnwindSafe for PointBase<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