[−][src]Struct slippy_map_tiles::ModTileMetatile
Metatiles as found by mod_tile, always 8x8
Implementations
impl ModTileMetatile
[src]
pub fn new(zoom: u8, x: u32, y: u32) -> Option<Self>
[src]
pub fn path<T: Display>(&self, ext: T) -> String
[src]
Returns the mod_tile path for storing this metatile
pub fn x(&self) -> u32
[src]
X value of this metatile
pub fn y(&self) -> u32
[src]
Y value of metatile
pub fn zoom(&self) -> u8
[src]
Zoom value of metatile
pub fn size(self) -> u8
[src]
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.
Methods from Deref<Target = Metatile>
pub fn scale(&self) -> u8
[src]
pub fn zoom(&self) -> u8
[src]
pub fn size(&self) -> u8
[src]
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.
pub fn centre_point(&self) -> LatLon
[src]
Returns the LatLon for the centre of this metatile.
pub fn center_point(&self) -> LatLon
[src]
Returns the LatLon for the centre of this metatile.
pub fn nw_corner(&self) -> LatLon
[src]
Returns the LatLon of the top left, i.e. north west corner, of this metatile.
pub fn ne_corner(&self) -> LatLon
[src]
Returns the LatLon of the top right, i.e. north east corner, of this metatile.
pub fn sw_corner(&self) -> LatLon
[src]
Returns the LatLon of the bottom left, i.e. south west corner, of this metatile.
pub fn se_corner(&self) -> LatLon
[src]
Returns the LatLon of the bottom right, i.e. south east corner, of this metatile.
pub fn x(&self) -> u32
[src]
X value of this metatile
pub fn y(&self) -> u32
[src]
Y value of metatile
pub fn tiles(&self) -> Vec<Tile>
[src]
Trait Implementations
impl Borrow<Metatile> for ModTileMetatile
[src]
impl Clone for ModTileMetatile
[src]
fn clone(&self) -> ModTileMetatile
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ModTileMetatile
[src]
impl Debug for ModTileMetatile
[src]
impl Deref for ModTileMetatile
[src]
impl Eq for ModTileMetatile
[src]
impl From<ModTileMetatile> for Metatile
[src]
fn from(mt: ModTileMetatile) -> Self
[src]
impl Hash for ModTileMetatile
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ModTileMetatile> for ModTileMetatile
[src]
fn eq(&self, other: &ModTileMetatile) -> bool
[src]
fn ne(&self, other: &ModTileMetatile) -> bool
[src]
impl StructuralEq for ModTileMetatile
[src]
impl StructuralPartialEq for ModTileMetatile
[src]
impl TryFrom<Metatile> for ModTileMetatile
[src]
Auto Trait Implementations
impl RefUnwindSafe for ModTileMetatile
impl Send for ModTileMetatile
impl Sync for ModTileMetatile
impl Unpin for ModTileMetatile
impl UnwindSafe for ModTileMetatile
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,