pub struct Encoder<W: BitWriter> { /* fields omitted */ }
Expand description
LZW encoder using the algorithm of GIF files.
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.
This function might panic if any of the input bytes exceeds 1 << min_code_size
.
This cannot happen if min_code_size >= 8
.
Executes the destructor for this type. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.