Enum libflate::lz77::Code
[−]
[src]
pub enum Code {
Literal(u8),
Pointer {
length: u16,
backward_distance: u16,
},
}A LZ77 encoded data.
Variants
Literal(u8)Literal byte.
PointerBackward pointer to shared data.
Fields
length: u16 | Length of the shared data.
The values must be limited to |
backward_distance: u16 | Distance between current position and start position of the shared data.
The values must be limited to |
Trait Implementations
impl Debug for Code[src]
impl Clone for Code[src]
fn clone(&self) -> Code
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for Code[src]
fn eq(&self, __arg_0: &Code) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Code) -> bool
This method tests for !=.
impl Eq for Code[src]
impl Hash for Code[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.