pub struct Vec2 { /* private fields */ }Expand description
A position on a 2D grid, or the size of a 2D grid.
Implementations§
Trait Implementations§
Source§impl Ord for Vec2
impl Ord for Vec2
Source§impl PartialOrd for Vec2
impl PartialOrd for Vec2
impl Eq for Vec2
impl StructuralPartialEq for Vec2
Auto Trait Implementations§
impl Freeze for Vec2
impl RefUnwindSafe for Vec2
impl Send for Vec2
impl Sync for Vec2
impl Unpin for Vec2
impl UnwindSafe for Vec2
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