pub struct CachedTile {
pub coord: TileCoord,
pub data: Vec<u8>,
pub size: usize,
pub last_access: f64,
pub loaded_at: f64,
pub access_count: u64,
}Expand description
Cached tile data
Fields§
§coord: TileCoordTile coordinate
data: Vec<u8>Tile data
size: usizeSize in bytes
last_access: f64Access timestamp (for LRU)
loaded_at: f64Load timestamp
access_count: u64Number of accesses
Implementations§
Trait Implementations§
Source§impl Clone for CachedTile
impl Clone for CachedTile
Source§fn clone(&self) -> CachedTile
fn clone(&self) -> CachedTile
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 CachedTile
impl RefUnwindSafe for CachedTile
impl Send for CachedTile
impl Sync for CachedTile
impl Unpin for CachedTile
impl UnsafeUnpin for CachedTile
impl UnwindSafe for CachedTile
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