pub enum BlockType {
Raw,
RLE,
Compressed,
Reserved,
}
Expand description
There are 4 different kinds of blocks, and the type of block influences the meaning of Block_Size
.
Variants§
Raw
An uncompressed block.
RLE
A single byte, repeated Block_Size
times (Run Length Encoding).
Compressed
A Zstandard compressed block. Block_Size
is the length of the compressed data.
Reserved
This is not a valid block, and this value should not be used. If this value is present, it should be considered corrupted data.
Trait Implementations§
source§impl PartialEq for BlockType
impl PartialEq for BlockType
impl Copy for BlockType
impl Eq for BlockType
impl StructuralPartialEq for BlockType
Auto Trait Implementations§
impl Freeze for BlockType
impl RefUnwindSafe for BlockType
impl Send for BlockType
impl Sync for BlockType
impl Unpin for BlockType
impl UnwindSafe for BlockType
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