pub enum LiteralsSectionType {
Raw,
RLE,
Compressed,
Treeless,
}
Expand description
The way which a literal section is encoded.
Variants§
Raw
Literals are stored uncompressed.
RLE
Literals consist of a single byte value repeated LiteralsSection::regenerated_size times.
Compressed
This is a standard Huffman-compressed block, starting with a Huffman tree description. In this mode, there are at least 2 different literals represented in the Huffman tree description.
Treeless
This is a Huffman-compressed block, using the Huffman tree from the previous LiteralsSectionType::Compressed block in the sequence. If this mode is triggered without any previous Huffman-tables in the frame (or dictionary), it should be treated as data corruption.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LiteralsSectionType
impl RefUnwindSafe for LiteralsSectionType
impl Send for LiteralsSectionType
impl Sync for LiteralsSectionType
impl Unpin for LiteralsSectionType
impl UnwindSafe for LiteralsSectionType
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