pub struct LocalPos {
pub x: u16,
pub y: u16,
}Expand description
Positions in a local space.
These coordinates can not be negative.
0, 0 refers to top left.
Fields§
§x: u16X coordinate
y: u16Y coordinate
Implementations§
Trait Implementations§
Source§impl AddAssign for LocalPos
impl AddAssign for LocalPos
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreimpl Copy for LocalPos
impl Eq for LocalPos
impl StructuralPartialEq for LocalPos
Auto Trait Implementations§
impl Freeze for LocalPos
impl RefUnwindSafe for LocalPos
impl Send for LocalPos
impl Sync for LocalPos
impl Unpin for LocalPos
impl UnsafeUnpin for LocalPos
impl UnwindSafe for LocalPos
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