pub struct Peg { /* private fields */ }Expand description
A Peg identifies a partition (tile) on a map grid at a specific zoom level.
It uses ZXY addressing:
- Z: zoom level, starting with 0 (one tile for the entire Earth)
- X: west to east tile number
- Y: north to south tile number
Each successive zoom level has twice as many tiles in each dimension (the X and Y values can range from 0 to 2Z-1).
Implementations§
Trait Implementations§
impl Copy for Peg
impl Eq for Peg
impl StructuralPartialEq for Peg
Auto Trait Implementations§
impl Freeze for Peg
impl RefUnwindSafe for Peg
impl Send for Peg
impl Sync for Peg
impl Unpin for Peg
impl UnsafeUnpin for Peg
impl UnwindSafe for Peg
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