pub struct TileId {
pub overscaled_z: u32,
pub wrap: i32,
pub canonical_z: u32,
pub canonical_x: u32,
pub canonical_y: u32,
}Expand description
The ID of a tile.
canonical_x and canonical_y place the tile in the source’s grid at zoom
canonical_z. overscaled_z is the zoom that the map draws the tile at,
and is greater when the source has no tiles that deep. wrap says which
copy of the world holds the tile: zero for the main one, negative to the
west, and positive to the east.
See mln_tile_id in the
C API reference.
Fields§
§overscaled_z: u32§wrap: i32§canonical_z: u32§canonical_x: u32§canonical_y: u32Trait Implementations§
impl Copy for TileId
impl StructuralPartialEq for TileId
Auto Trait Implementations§
impl Freeze for TileId
impl RefUnwindSafe for TileId
impl Send for TileId
impl Sync for TileId
impl Unpin for TileId
impl UnsafeUnpin for TileId
impl UnwindSafe for TileId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more