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.
impl<T: Copy> Copy 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