Trait HuffmanWrite

trait HuffmanWrite<E: Endianness>

A trait for anything that can write Huffman codes of a given endianness to an output stream

Required Methods

fn write_huffman<T>(self: &mut Self, tree: &WriteHuffmanTree<E, T>, symbol: T) -> Result<()>
where
    T: Ord + Copy

Writes Huffman code for the given symbol to the stream.

Errors

Passes along any I/O error from the underlying stream.

Implementors