pub enum ChunkState {
Unloaded,
Queued,
Loading,
Loaded,
Unloading,
}Expand description
Lifecycle state of a terrain chunk.
Variants§
Unloaded
Not in memory; no data loaded.
Queued
Queued for loading; data generation has not started.
Loading
Actively being generated/loaded (in-flight).
Loaded
Fully loaded; heightmap and mesh are available.
Unloading
Marked for unloading on the next eviction pass.
Implementations§
Source§impl ChunkState
impl ChunkState
Trait Implementations§
Source§impl Clone for ChunkState
impl Clone for ChunkState
Source§fn clone(&self) -> ChunkState
fn clone(&self) -> ChunkState
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 moreSource§impl Debug for ChunkState
impl Debug for ChunkState
Source§impl PartialEq for ChunkState
impl PartialEq for ChunkState
impl Copy for ChunkState
impl Eq for ChunkState
impl StructuralPartialEq for ChunkState
Auto Trait Implementations§
impl Freeze for ChunkState
impl RefUnwindSafe for ChunkState
impl Send for ChunkState
impl Sync for ChunkState
impl Unpin for ChunkState
impl UnsafeUnpin for ChunkState
impl UnwindSafe for ChunkState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.