pub struct WriteHuffmanTree<E: Endianness, T: Ord> { /* private fields */ }
Expand description

A compiled Huffman tree for use with the write_huffman method. Returned by compiled_write_tree.

Implementations

Returns true if symbol is in tree.

Given symbol, returns (bits, value) pairs for writing code. Panics if symbol is not found.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.