pub enum LiteralsBlockType {
Raw,
Rle,
Compressed,
Treeless,
}Expand description
Literals block type.
Variants§
Raw
Raw literals - uncompressed bytes.
Rle
RLE literals - single byte repeated.
Compressed
Huffman compressed literals with new tree.
Treeless
Huffman compressed using previous tree.
Implementations§
Source§impl LiteralsBlockType
impl LiteralsBlockType
Sourcepub fn from_field(field: u8) -> Self
pub fn from_field(field: u8) -> Self
Parse block type from 2-bit field.
Trait Implementations§
Source§impl Clone for LiteralsBlockType
impl Clone for LiteralsBlockType
Source§fn clone(&self) -> LiteralsBlockType
fn clone(&self) -> LiteralsBlockType
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 LiteralsBlockType
impl Debug for LiteralsBlockType
Source§impl PartialEq for LiteralsBlockType
impl PartialEq for LiteralsBlockType
impl Copy for LiteralsBlockType
impl Eq for LiteralsBlockType
impl StructuralPartialEq for LiteralsBlockType
Auto Trait Implementations§
impl Freeze for LiteralsBlockType
impl RefUnwindSafe for LiteralsBlockType
impl Send for LiteralsBlockType
impl Sync for LiteralsBlockType
impl Unpin for LiteralsBlockType
impl UnwindSafe for LiteralsBlockType
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