pub struct TileCacheEntry {
pub header: TileHeader,
pub data: usize,
pub obstacles: Vec<usize>,
pub next: Option<usize>,
}Expand description
Tile cache entry
Fields§
§header: TileHeaderHeader of the tile
data: usizeIndex of the compressed tile data
obstacles: Vec<usize>Indices of obstacles affecting this tile
next: Option<usize>Next free tile in the linked list (used for memory management)
Trait Implementations§
Source§impl Clone for TileCacheEntry
impl Clone for TileCacheEntry
Source§fn clone(&self) -> TileCacheEntry
fn clone(&self) -> TileCacheEntry
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 TileCacheEntry
impl RefUnwindSafe for TileCacheEntry
impl Send for TileCacheEntry
impl Sync for TileCacheEntry
impl Unpin for TileCacheEntry
impl UnsafeUnpin for TileCacheEntry
impl UnwindSafe for TileCacheEntry
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