pub struct Vector2<U> { /* private fields */ }Implementations§
source§impl<U, V, W> Vector2<U>
impl<U, V, W> Vector2<U>
pub fn length_squared(&self) -> W
Trait Implementations§
source§impl<U> AddAssign for Vector2<U>where
U: AddAssign,
impl<U> AddAssign for Vector2<U>where
U: AddAssign,
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl<U> DivAssign<U> for Vector2<U>
impl<U> DivAssign<U> for Vector2<U>
source§fn div_assign(&mut self, rhs: U)
fn div_assign(&mut self, rhs: U)
Performs the
/= operation. Read moresource§impl<U> MulAssign<U> for Vector2<U>
impl<U> MulAssign<U> for Vector2<U>
source§fn mul_assign(&mut self, rhs: U)
fn mul_assign(&mut self, rhs: U)
Performs the
*= operation. Read moresource§impl<U: PartialEq> PartialEq for Vector2<U>
impl<U: PartialEq> PartialEq for Vector2<U>
source§impl<U> SubAssign for Vector2<U>where
U: SubAssign,
impl<U> SubAssign for Vector2<U>where
U: SubAssign,
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl<U: Copy> Copy for Vector2<U>
impl<U: Eq> Eq for Vector2<U>
impl<U> StructuralEq for Vector2<U>
impl<U> StructuralPartialEq for Vector2<U>
Auto Trait Implementations§
impl<U> RefUnwindSafe for Vector2<U>where
U: RefUnwindSafe,
impl<U> Send for Vector2<U>where
U: Send,
impl<U> Sync for Vector2<U>where
U: Sync,
impl<U> Unpin for Vector2<U>where
U: Unpin,
impl<U> UnwindSafe for Vector2<U>where
U: 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