pub struct ModTileMetatile { /* private fields */ }Expand description
Metatiles as found by mod_tile, always 8x8
Implementations§
Methods from Deref<Target = Metatile>§
pub fn scale(&self) -> u8
pub fn zoom(&self) -> u8
Sourcepub fn size(&self) -> u8
pub fn size(&self) -> u8
What is the width or height of this metatile. For small zoom numbers (e.g. z1), there will
not be the full scale tiles across.
Sourcepub fn centre_point(&self) -> LatLon
pub fn centre_point(&self) -> LatLon
Returns the LatLon for the centre of this metatile.
Sourcepub fn center_point(&self) -> LatLon
pub fn center_point(&self) -> LatLon
Returns the LatLon for the centre of this metatile.
Sourcepub fn nw_corner(&self) -> LatLon
pub fn nw_corner(&self) -> LatLon
Returns the LatLon of the top left, i.e. north west corner, of this metatile.
Sourcepub fn ne_corner(&self) -> LatLon
pub fn ne_corner(&self) -> LatLon
Returns the LatLon of the top right, i.e. north east corner, of this metatile.
Sourcepub fn sw_corner(&self) -> LatLon
pub fn sw_corner(&self) -> LatLon
Returns the LatLon of the bottom left, i.e. south west corner, of this metatile.
Sourcepub fn se_corner(&self) -> LatLon
pub fn se_corner(&self) -> LatLon
Returns the LatLon of the bottom right, i.e. south east corner, of this metatile.
pub fn tiles(&self) -> Vec<Tile>
Trait Implementations§
Source§impl Borrow<Metatile> for ModTileMetatile
impl Borrow<Metatile> for ModTileMetatile
Source§impl Clone for ModTileMetatile
impl Clone for ModTileMetatile
Source§fn clone(&self) -> ModTileMetatile
fn clone(&self) -> ModTileMetatile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModTileMetatile
impl Debug for ModTileMetatile
Source§impl From<ModTileMetatile> for Metatile
impl From<ModTileMetatile> for Metatile
Source§fn from(mt: ModTileMetatile) -> Self
fn from(mt: ModTileMetatile) -> Self
Converts to this type from the input type.
Source§impl Hash for ModTileMetatile
impl Hash for ModTileMetatile
Source§impl PartialEq for ModTileMetatile
impl PartialEq for ModTileMetatile
Source§impl TryFrom<Metatile> for ModTileMetatile
impl TryFrom<Metatile> for ModTileMetatile
Source§impl Deref for ModTileMetatile
impl Deref for ModTileMetatile
impl Copy for ModTileMetatile
impl Eq for ModTileMetatile
impl StructuralPartialEq for ModTileMetatile
Auto Trait Implementations§
impl Freeze for ModTileMetatile
impl RefUnwindSafe for ModTileMetatile
impl Send for ModTileMetatile
impl Sync for ModTileMetatile
impl Unpin for ModTileMetatile
impl UnwindSafe for ModTileMetatile
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