#[repr(C)]
pub struct Chunk {
pub compression_type: CompressionType,
}
Expand description
Represents one chunk in a region
The compression type used for the data in this chunk
Allocate this Chunk
into a new Box
which is owned by the caller
Parse this chunk into a ParsedChunk
Allocates a new Vec
into which the compressed data will be uncompressed and then parses
the nbt from that Vec
Get the length of the compressed data within this chunk
Formats the value using the given formatter.
Read more
This method tests for self
and other
values to be equal, and is used
by ==
.
This method tests for !=
. The default implementation is almost always
sufficient, and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more