Expand description
Traits and implementations for reading or writing Huffman codes from or to a stream.
Structs§
- Write
Huffman Tree - A compiled Huffman tree for use with the
write_huffman
method. Returned bycompiled_write_tree
.
Enums§
- Huffman
Tree Error - An error type during Huffman tree compilation.
- Read
Huffman Tree - A compiled Huffman tree element for use with the
read_huffman
method. Returned bycompile_read_tree
.
Functions§
- compile_
read_ tree - Given a vector of symbol/code pairs, compiles a Huffman tree for reading.
- compile_
write_ tree - Given a vector of symbol/code pairs, compiles a Huffman tree for writing.