pub struct TileCacheLayer {
pub header: TileCacheLayerHeader,
pub regons: Vec<u8>,
pub areas: Vec<u8>,
pub cons: Vec<u8>,
}Expand description
Compressed tile cache layer data
Fields§
§header: TileCacheLayerHeaderHeader information
regons: Vec<u8>Compressed region data
areas: Vec<u8>Compressed area data
cons: Vec<u8>Compressed connection data
Implementations§
Source§impl TileCacheLayer
impl TileCacheLayer
Sourcepub fn new(header: TileCacheLayerHeader) -> Self
pub fn new(header: TileCacheLayerHeader) -> Self
Creates a new tile cache layer
Sourcepub fn from_bytes(data: &[u8]) -> Result<Self, TileCacheError>
pub fn from_bytes(data: &[u8]) -> Result<Self, TileCacheError>
Deserializes the layer from bytes (uncompressed)
Trait Implementations§
Source§impl Clone for TileCacheLayer
impl Clone for TileCacheLayer
Source§fn clone(&self) -> TileCacheLayer
fn clone(&self) -> TileCacheLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TileCacheLayer
impl RefUnwindSafe for TileCacheLayer
impl Send for TileCacheLayer
impl Sync for TileCacheLayer
impl Unpin for TileCacheLayer
impl UnsafeUnpin for TileCacheLayer
impl UnwindSafe for TileCacheLayer
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