Enum libflate::lz77::Code[][src]

pub enum Code {
    Literal(u8),
    Pointer {
        length: u16,
        backward_distance: u16,
    },
}

A LZ77 encoded data.

Variants

Literal byte.

Backward pointer to shared data.

Fields of Pointer

Length of the shared data. The values must be limited to MAX_LENGTH.

Distance between current position and start position of the shared data. The values must be limited to MAX_DISTANCE.

Trait Implementations

impl Debug for Code
[src]

Formats the value using the given formatter. Read more

impl Clone for Code
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Code
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Code
[src]

impl Hash for Code
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Code

impl Sync for Code