pub struct Pos2 {
pub x: f32,
pub y: f32,
}Expand description
Simple (x, y) coordinate / vector
Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
Source§impl AddAssign for Pos2
impl AddAssign for Pos2
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreimpl Copy for Pos2
impl StructuralPartialEq for Pos2
Auto Trait Implementations§
impl Freeze for Pos2
impl RefUnwindSafe for Pos2
impl Send for Pos2
impl Sync for Pos2
impl Unpin for Pos2
impl UnwindSafe for Pos2
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