Struct pixel_engine::vector2::Vec2d
source · pub struct Vec2d<T> {
pub x: T,
pub y: T,
}
Expand description
Basicly a glorified tuple
Fields§
§x: T
x
y: T
y
Implementations§
Trait Implementations§
source§impl<T> AddAssign<Vec2d<T>> for Vec2d<T>where
T: Copy + AddAssign<T>,
impl<T> AddAssign<Vec2d<T>> for Vec2d<T>where
T: Copy + AddAssign<T>,
source§fn add_assign(&mut self, rhs: Vec2d<T>)
fn add_assign(&mut self, rhs: Vec2d<T>)
Performs the
+=
operation. Read moresource§impl<T> DivAssign<T> for Vec2d<T>where
T: Copy + DivAssign<T>,
impl<T> DivAssign<T> for Vec2d<T>where
T: Copy + DivAssign<T>,
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 Vec2d<T>where
T: Copy + MulAssign<T>,
impl<T> MulAssign<T> for Vec2d<T>where
T: Copy + MulAssign<T>,
source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
Performs the
*=
operation. Read moresource§impl<T> PartialEq<Vec2d<T>> for Vec2d<T>where
T: PartialEq<T>,
impl<T> PartialEq<Vec2d<T>> for Vec2d<T>where
T: PartialEq<T>,
source§impl<T> SubAssign<Vec2d<T>> for Vec2d<T>where
T: Copy + SubAssign<T>,
impl<T> SubAssign<Vec2d<T>> for Vec2d<T>where
T: Copy + SubAssign<T>,
source§fn sub_assign(&mut self, rhs: Vec2d<T>)
fn sub_assign(&mut self, rhs: Vec2d<T>)
Performs the
-=
operation. Read moreimpl<T> Copy for Vec2d<T>where
T: Copy,
impl<T> Eq for Vec2d<T>where
T: Eq,
impl<T> StructuralEq for Vec2d<T>
impl<T> StructuralPartialEq for Vec2d<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Vec2d<T>where
T: RefUnwindSafe,
impl<T> Send for Vec2d<T>where
T: Send,
impl<T> Sync for Vec2d<T>where
T: Sync,
impl<T> Unpin for Vec2d<T>where
T: Unpin,
impl<T> UnwindSafe for Vec2d<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.