pub struct ChunkLoadRequest {
pub env: Arc<LevelEnv>,
pub height: ChunkHeight,
pub cx: i32,
pub cz: i32,
}
Expand description
This structure is constructed by levels and passed to LevelSource
when requesting for
chunk loading, the chunk must be constructed from the given data.
Fields§
§env: Arc<LevelEnv>
§height: ChunkHeight
§cx: i32
§cz: i32
Implementations§
Source§impl ChunkLoadRequest
impl ChunkLoadRequest
Sourcepub fn build_chunk(&self) -> Chunk
pub fn build_chunk(&self) -> Chunk
Build a chunk from this chunk info.
pub fn build_proto_chunk(&self) -> ProtoChunk
Trait Implementations§
Source§impl Clone for ChunkLoadRequest
impl Clone for ChunkLoadRequest
Source§fn clone(&self) -> ChunkLoadRequest
fn clone(&self) -> ChunkLoadRequest
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 ChunkLoadRequest
impl !RefUnwindSafe for ChunkLoadRequest
impl Send for ChunkLoadRequest
impl Sync for ChunkLoadRequest
impl Unpin for ChunkLoadRequest
impl !UnwindSafe for ChunkLoadRequest
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