Struct lzw::Encoder[][src]

pub struct Encoder<W: BitWriter> { /* fields omitted */ }
Expand description

LZW encoder using the algorithm of GIF files.

Implementations

Creates a new LZW encoder.

Note: If min_code_size < 8 then Self::encode_bytes might panic when the supplied data containts values that exceed 1 << min_code_size.

Compresses bytes and writes the result into the writer.

Panics

This function might panic if any of the input bytes exceeds 1 << min_code_size. This cannot happen if min_code_size >= 8.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.