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 + CopyWrites Huffman code for the given symbol to the stream.
Errors
Passes along any I/O error from the underlying stream.
Implementors
impl<N, E> HuffmanWrite for BitRecorder<N, E>impl<W: io::Write, E: Endianness> HuffmanWrite for BitWriter<W, E>impl<N, E> HuffmanWrite for BitCounter<N, E>