Module bitstream_io::huffman

source ·
Expand description

Traits and implementations for reading or writing Huffman codes from or to a stream.

Structs

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

Enums

  • An error type during Huffman tree compilation.
  • A compiled Huffman tree element for use with the read_huffman method. Returned by compile_read_tree.

Functions

  • Given a vector of symbol/code pairs, compiles a Huffman tree for reading.
  • Given a vector of symbol/code pairs, compiles a Huffman tree for writing.