Trait bitstream_io::write::HuffmanWrite [−][src]
pub trait HuffmanWrite<E: Endianness> { fn write_huffman<T>(
&mut self,
tree: &WriteHuffmanTree<E, T>,
symbol: T
) -> Result<()>
where
T: Ord + Copy; }
Expand description
A trait for anything that can write Huffman codes of a given endianness to an output stream
Required methods
fn write_huffman<T>(
&mut self,
tree: &WriteHuffmanTree<E, T>,
symbol: T
) -> Result<()> where
T: Ord + Copy,
fn write_huffman<T>(
&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.