[][src]Struct slippy_map_tiles::ModTileMetatile

pub struct ModTileMetatile { /* fields omitted */ }

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]

impl Copy for ModTileMetatile[src]

impl Debug for ModTileMetatile[src]

impl Deref for ModTileMetatile[src]

type Target = Metatile

The resulting type after dereferencing.

impl Eq for ModTileMetatile[src]

impl From<ModTileMetatile> for Metatile[src]

impl Hash for ModTileMetatile[src]

impl PartialEq<ModTileMetatile> for ModTileMetatile[src]

impl StructuralEq for ModTileMetatile[src]

impl StructuralPartialEq for ModTileMetatile[src]

impl TryFrom<Metatile> for ModTileMetatile[src]

type Error = &'static str

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.