pub struct TileCoordinate {
pub z: u8,
pub x: u32,
pub y: u32,
}Expand description
Tile coordinate in a tile matrix.
Fields§
§z: u8Zoom level
x: u32Column (x) index
y: u32Row (y) index
Implementations§
Source§impl TileCoordinate
impl TileCoordinate
Sourcepub fn to_xyz_string(&self) -> String
pub fn to_xyz_string(&self) -> String
Convert to XYZ format string.
Trait Implementations§
Source§impl Clone for TileCoordinate
impl Clone for TileCoordinate
Source§fn clone(&self) -> TileCoordinate
fn clone(&self) -> TileCoordinate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TileCoordinate
Source§impl Debug for TileCoordinate
impl Debug for TileCoordinate
Source§impl<'de> Deserialize<'de> for TileCoordinate
impl<'de> Deserialize<'de> for TileCoordinate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TileCoordinate
impl Display for TileCoordinate
impl Eq for TileCoordinate
Source§impl Hash for TileCoordinate
impl Hash for TileCoordinate
Source§impl PartialEq for TileCoordinate
impl PartialEq for TileCoordinate
Source§impl Serialize for TileCoordinate
impl Serialize for TileCoordinate
impl StructuralPartialEq for TileCoordinate
Auto Trait Implementations§
impl Freeze for TileCoordinate
impl RefUnwindSafe for TileCoordinate
impl Send for TileCoordinate
impl Sync for TileCoordinate
impl Unpin for TileCoordinate
impl UnsafeUnpin for TileCoordinate
impl UnwindSafe for TileCoordinate
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.