pub struct TileKey {
pub x: u32,
pub y: u32,
pub z: u32,
pub level: u8,
}Fields§
§x: u32§y: u32§z: u32§level: u8Implementations§
Source§impl TileKey
impl TileKey
pub fn encode(&self, w: &mut Writer) -> Result<(), WireError>
pub fn decode(r: &mut Reader<'_>) -> Result<Self, WireError>
pub fn key_holder_be(&self) -> Result<Vec<u8>, WireError>
pub fn key_from_holder_be(r: &mut Reader<'_>) -> Result<Self, WireError>
pub fn key_hash(&self) -> Result<[u8; 16], WireError>
Trait Implementations§
impl StructuralPartialEq for TileKey
Auto Trait Implementations§
impl Freeze for TileKey
impl RefUnwindSafe for TileKey
impl Send for TileKey
impl Sync for TileKey
impl Unpin for TileKey
impl UnsafeUnpin for TileKey
impl UnwindSafe for TileKey
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