pub struct Pos {
pub x: i32,
pub y: i32,
}Expand description
A position in global space. Can contain negative coordinates
Fields§
§x: i32X coordinate
y: i32Y coordinate
Implementations§
Trait Implementations§
Source§impl AddAssign for Pos
impl AddAssign for Pos
Source§fn add_assign(&mut self, rhs: Pos)
fn add_assign(&mut self, rhs: Pos)
Performs the
+= operation. Read moreSource§impl PartialOrd for Pos
impl PartialOrd for Pos
Source§impl SubAssign for Pos
impl SubAssign for Pos
Source§fn sub_assign(&mut self, rhs: Pos)
fn sub_assign(&mut self, rhs: Pos)
Performs the
-= operation. Read moreimpl Copy for Pos
impl Eq for Pos
impl StructuralPartialEq for Pos
Auto Trait Implementations§
impl Freeze for Pos
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnsafeUnpin for Pos
impl UnwindSafe for Pos
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