Struct slippy_map_tiles::Tile [] [src]

pub struct Tile {
    pub zoom: u8,
    pub x: u32,
    pub y: u32,
}

Fields

zoom: u8 x: u32 y: u32

Methods

impl Tile
[src]

fn new(zoom: u8, x: u32, y: u32) -> Option<Tile>

fn from_tms(tms: &str) -> Option<Tile>

fn parent(&self) -> Option<Tile>

fn subtiles(&self) -> Option<[Tile; 4]>

fn centre_point(&self) -> LatLon

fn center_point(&self) -> LatLon

fn nw_corner(&self) -> LatLon

fn ne_corner(&self) -> LatLon

fn sw_corner(&self) -> LatLon

fn se_corner(&self) -> LatLon

fn top(&self) -> f32

fn bottom(&self) -> f32

fn left(&self) -> f32

fn right(&self) -> f32

fn tc_path<T: Display>(&self, ext: T) -> String

fn mp_path<T: Display>(&self, ext: T) -> String

fn all() -> AllTilesIterator

fn all_to_zoom(max_zoom: u8) -> AllTilesToZoomIterator

fn bbox(&self) -> BBox

Trait Implementations

impl Copy for Tile
[src]

impl Clone for Tile
[src]

fn clone(&self) -> Tile

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Tile
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for Tile
[src]

impl PartialEq for Tile
[src]

fn eq(&self, __arg_0: &Tile) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Tile) -> bool

This method tests for !=.