Struct bottomless_pit::vectors::Vec2
source · pub struct Vec2<T> {
pub x: T,
pub y: T,
}Expand description
A generic representation of 2D data
Fields§
§x: T§y: TImplementations§
Trait Implementations§
source§impl<T> From<PhysicalSize<T>> for Vec2<T>
impl<T> From<PhysicalSize<T>> for Vec2<T>
source§fn from(value: PhysicalSize<T>) -> Self
fn from(value: PhysicalSize<T>) -> Self
Converts to this type from the input type.
source§impl<T: PartialEq> PartialEq for Vec2<T>
impl<T: PartialEq> PartialEq for Vec2<T>
impl<T: Copy> Copy for Vec2<T>
impl<T: Eq> Eq for Vec2<T>
impl<T> StructuralEq for Vec2<T>
impl<T> StructuralPartialEq for Vec2<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Vec2<T>where
T: RefUnwindSafe,
impl<T> Send for Vec2<T>where
T: Send,
impl<T> Sync for Vec2<T>where
T: Sync,
impl<T> Unpin for Vec2<T>where
T: Unpin,
impl<T> UnwindSafe for Vec2<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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.