pub struct Obstacle {
pub data: ObstacleData,
pub state: ObstacleState,
pub salt: u16,
pub touched: Vec<u32>,
pub pending: Vec<u32>,
pub next: Option<usize>,
}Expand description
Obstacle in the tile cache
Fields§
§data: ObstacleDataObstacle data
state: ObstacleStateObstacle state
salt: u16Salt value for reference generation
touched: Vec<u32>Tiles affected by this obstacle
pending: Vec<u32>Pending tiles to be updated
next: Option<usize>Next free obstacle in the linked list (used for memory management)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Obstacle
impl RefUnwindSafe for Obstacle
impl Send for Obstacle
impl Sync for Obstacle
impl Unpin for Obstacle
impl UnsafeUnpin for Obstacle
impl UnwindSafe for Obstacle
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