#[repr(C)]pub struct Point<T> {
pub x: T,
pub y: T,
}
Fields§
§x: T
§y: T
Implementations§
Trait Implementations§
source§impl<T, U> AddAssign<U> for Point<T>where
T: AddAssign<T>,
U: Into<Size<T>>,
impl<T, U> AddAssign<U> for Point<T>where T: AddAssign<T>, U: Into<Size<T>>,
source§fn add_assign(&mut self, rhs: U)
fn add_assign(&mut self, rhs: U)
Performs the
+=
operation. Read moresource§impl<T> Collision<Circle<T>> for Point<T>where
T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
impl<T> Collision<Circle<T>> for Point<T>where T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
source§impl<T> Collision<Point<T>> for Circle<T>where
T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
impl<T> Collision<Point<T>> for Circle<T>where T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
source§impl<T> DivAssign<T> for Point<T>where
T: DivAssign<T> + Copy,
impl<T> DivAssign<T> for Point<T>where T: DivAssign<T> + Copy,
source§fn div_assign(&mut self, rhs: T)
fn div_assign(&mut self, rhs: T)
Performs the
/=
operation. Read moresource§impl<T> MulAssign<T> for Point<T>where
T: MulAssign<T> + Copy,
impl<T> MulAssign<T> for Point<T>where T: MulAssign<T> + Copy,
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T> PartialEq<[T; 2]> for Point<T>where
T: PartialEq,
impl<T> PartialEq<[T; 2]> for Point<T>where T: PartialEq,
source§impl<T> PartialEq<(T, T)> for Point<T>where
T: PartialEq,
impl<T> PartialEq<(T, T)> for Point<T>where T: PartialEq,
source§impl<T> PartialEq<Point<T>> for [T; 2]where
T: PartialEq,
impl<T> PartialEq<Point<T>> for [T; 2]where T: PartialEq,
source§impl<T> PartialEq<Point<T>> for (T, T)where
T: PartialEq,
impl<T> PartialEq<Point<T>> for (T, T)where T: PartialEq,
source§impl<T: PartialEq> PartialEq<Point<T>> for Point<T>
impl<T: PartialEq> PartialEq<Point<T>> for Point<T>
source§impl<T> SubAssign<Vector<T>> for Point<T>where
T: SubAssign<T>,
impl<T> SubAssign<Vector<T>> for Point<T>where T: SubAssign<T>,
source§fn sub_assign(&mut self, rhs: Vector<T>)
fn sub_assign(&mut self, rhs: Vector<T>)
Performs the
-=
operation. Read moreimpl<T: Copy> Copy for Point<T>
impl<T: Eq> Eq for Point<T>
impl<T> StructuralEq 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