Struct bitstream_io::huffman::WriteHuffmanTree [−][src]
pub struct WriteHuffmanTree<E: Endianness, T: Ord> { /* fields omitted */ }
A compiled Huffman tree for use with the write_huffman method.
Returned by compiled_write_tree.
Methods
impl<E: Endianness, T: Ord + Clone> WriteHuffmanTree<E, T>[src]
impl<E: Endianness, T: Ord + Clone> WriteHuffmanTree<E, T>pub fn has_symbol(&self, symbol: T) -> bool[src]
pub fn has_symbol(&self, symbol: T) -> boolReturns true if symbol is in tree.
pub fn get(&self, symbol: T) -> &[(u32, u32)][src]
pub fn get(&self, symbol: T) -> &[(u32, u32)]Given symbol, returns (bits, value) pairs for writing code. Panics if symbol is not found.
Auto Trait Implementations
impl<E, T> Send for WriteHuffmanTree<E, T> where
E: Send,
T: Send,
impl<E, T> Send for WriteHuffmanTree<E, T> where
E: Send,
T: Send, impl<E, T> Sync for WriteHuffmanTree<E, T> where
E: Sync,
T: Sync,
impl<E, T> Sync for WriteHuffmanTree<E, T> where
E: Sync,
T: Sync,