pub struct TileCoord {
pub z: u8,
pub x: u32,
pub y: u32,
}Fields§
§z: u8§x: u32§y: u32Implementations§
Source§impl TileCoord
impl TileCoord
Sourcepub fn new_checked(z: u8, x: u32, y: u32) -> Option<TileCoord>
pub fn new_checked(z: u8, x: u32, y: u32) -> Option<TileCoord>
Checks provided coordinates for validity
before constructing TileCoord instance.
Check Self::new_unchecked if you are sure that your inputs are possible.
Sourcepub fn new_unchecked(z: u8, x: u32, y: u32) -> TileCoord
pub fn new_unchecked(z: u8, x: u32, y: u32) -> TileCoord
Constructs TileCoord instance from arguments without checking that the tiles can exist.
Check Self::new_checked if you are unsure if your inputs are possible.
Trait Implementations§
impl Copy for TileCoord
impl Eq for TileCoord
impl StructuralPartialEq for TileCoord
Auto Trait Implementations§
impl Freeze for TileCoord
impl RefUnwindSafe for TileCoord
impl Send for TileCoord
impl Sync for TileCoord
impl Unpin for TileCoord
impl UnwindSafe for TileCoord
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