#[repr(C)]pub struct Point<T> {
pub x: T,
pub y: T,
}
Fields§
§x: T
§y: T
Trait Implementations§
source§impl<T> From<MousePoint> for Point<T>
impl<T> From<MousePoint> for Point<T>
source§fn from(pt: MousePoint) -> Point<T>
fn from(pt: MousePoint) -> Point<T>
Converts to this type from the input type.
source§impl<T: PartialEq> PartialEq for Point<T>
impl<T: PartialEq> PartialEq for Point<T>
impl<T: Copy> Copy for Point<T>
impl<T> StructuralPartialEq for Point<T>
Auto Trait Implementations§
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