pub struct ChunkHitlist { /* private fields */ }Expand description
A list of chunks that must be loaded before play can begin.
Implementations§
Source§impl ChunkHitlist
impl ChunkHitlist
pub fn new() -> Self
pub fn require(&mut self, coord: ChunkCoord)
pub fn mark_loaded(&mut self, coord: ChunkCoord)
pub fn is_complete(&self) -> bool
pub fn completion_fraction(&self) -> f32
pub fn pending_coords(&self) -> Vec<ChunkCoord>
Trait Implementations§
Source§impl Debug for ChunkHitlist
impl Debug for ChunkHitlist
Auto Trait Implementations§
impl Freeze for ChunkHitlist
impl RefUnwindSafe for ChunkHitlist
impl Send for ChunkHitlist
impl Sync for ChunkHitlist
impl Unpin for ChunkHitlist
impl UnsafeUnpin for ChunkHitlist
impl UnwindSafe for ChunkHitlist
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