#[repr(C)]pub struct Point2<T> {
pub x: T,
pub y: T,
}
Fields§
§x: T
§y: T
Implementations§
Trait Implementations§
source§impl<T: Ord> Ord for Point2<T>
impl<T: Ord> Ord for Point2<T>
source§impl<T: PartialEq> PartialEq for Point2<T>
impl<T: PartialEq> PartialEq for Point2<T>
source§impl<T: PartialOrd> PartialOrd for Point2<T>
impl<T: PartialOrd> PartialOrd for Point2<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for Point2<T>
impl<T: Eq> Eq for Point2<T>
impl<T> StructuralEq for Point2<T>
impl<T> StructuralPartialEq for Point2<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Point2<T>where
T: RefUnwindSafe,
impl<T> Send for Point2<T>where
T: Send,
impl<T> Sync for Point2<T>where
T: Sync,
impl<T> Unpin for Point2<T>where
T: Unpin,
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