pub struct TilePos {
pub x: u16,
pub y: u16,
}Expand description
A position on the tile grid, measured in tiles.
Fields§
§x: u16Horizontal position (0 = left edge).
y: u16Vertical position (0 = top edge).
Implementations§
Trait Implementations§
impl Copy for TilePos
impl Eq for TilePos
impl StructuralPartialEq for TilePos
Auto Trait Implementations§
impl Freeze for TilePos
impl RefUnwindSafe for TilePos
impl Send for TilePos
impl Sync for TilePos
impl Unpin for TilePos
impl UnsafeUnpin for TilePos
impl UnwindSafe for TilePos
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