Struct gecl::Point [−][src]
#[repr(C)]pub struct Point<T> { pub x: T, pub y: T, }
Fields
x: T
y: T
Implementations
Trait Implementations
impl<T, U> AddAssign<U> for Point<T> where
T: AddAssign<T>,
U: Into<Size<T>>,
[src]
impl<T, U> AddAssign<U> for Point<T> where
T: AddAssign<T>,
U: Into<Size<T>>,
[src]fn add_assign(&mut self, rhs: U)
[src]
fn add_assign(&mut self, rhs: U)
[src]Performs the +=
operation. Read more
impl<T> Collision<Circle<T>> for Point<T> where
T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
[src]
impl<T> Collision<Circle<T>> for Point<T> where
T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
[src]fn is_crossing(&self, rhs: &Circle<T>) -> bool
[src]
impl<T> Collision<Point<T>> for Circle<T> where
T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
[src]
impl<T> Collision<Point<T>> for Circle<T> where
T: Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T> + PartialOrd + Copy,
[src]fn is_crossing(&self, rhs: &Point<T>) -> bool
[src]
impl<T> Collision<Point<T>> for Rect<T> where
T: Add<T, Output = T> + PartialOrd + Copy,
[src]
impl<T> Collision<Point<T>> for Rect<T> where
T: Add<T, Output = T> + PartialOrd + Copy,
[src]fn is_crossing(&self, rhs: &Point<T>) -> bool
[src]
impl<T> Collision<Rect<T>> for Point<T> where
T: Add<T, Output = T> + PartialOrd + Copy,
[src]
impl<T> Collision<Rect<T>> for Point<T> where
T: Add<T, Output = T> + PartialOrd + Copy,
[src]fn is_crossing(&self, rhs: &Rect<T>) -> bool
[src]
impl<T> DivAssign<T> for Point<T> where
T: DivAssign<T> + Copy,
[src]
impl<T> DivAssign<T> for Point<T> where
T: DivAssign<T> + Copy,
[src]fn div_assign(&mut self, rhs: T)
[src]
fn div_assign(&mut self, rhs: T)
[src]Performs the /=
operation. Read more
impl<T> MulAssign<T> for Point<T> where
T: MulAssign<T> + Copy,
[src]
impl<T> MulAssign<T> for Point<T> where
T: MulAssign<T> + Copy,
[src]fn mul_assign(&mut self, rhs: T)
[src]
fn mul_assign(&mut self, rhs: T)
[src]Performs the *=
operation. Read more
impl<T> SubAssign<Vector<T>> for Point<T> where
T: SubAssign<T>,
[src]
impl<T> SubAssign<Vector<T>> for Point<T> where
T: SubAssign<T>,
[src]fn sub_assign(&mut self, rhs: Vector<T>)
[src]
fn sub_assign(&mut self, rhs: Vector<T>)
[src]Performs the -=
operation. Read more
impl<T: Copy> Copy for Point<T>
[src]
impl<T: Eq> Eq for Point<T>
[src]
impl<T> StructuralEq for Point<T>
[src]
impl<T> StructuralPartialEq for Point<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Point<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Point<T> where
T: Send,
T: Send,
impl<T> Sync for Point<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Point<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Point<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more