Enum libflate_lz77::Code
source · pub enum Code {
Literal(u8),
Pointer {
length: u16,
backward_distance: u16,
},
}
Expand description
A LZ77 encoded data.
Variants§
Literal(u8)
Literal byte.
Pointer
Backward pointer to shared data.
Fields
§
length: u16
Length of the shared data.
The values must be limited to MAX_LENGTH
.
§
backward_distance: u16
Distance between current position and start position of the shared data.
The values must be limited to MAX_DISTANCE
.
Trait Implementations§
source§impl PartialEq for Code
impl PartialEq for Code
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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