Module huffman
Traits and implementations for reading or writing Huffman codes from or to a stream.
Structs
-
WriteHuffmanTree
A compiled Huffman tree for use with the
write_huffmanmethod. Returned bycompiled_write_tree.
Enums
- HuffmanTreeError An error type during Huffman tree compilation.
-
ReadHuffmanTree
A compiled Huffman tree element for use with the
read_huffmanmethod. 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.