Enum bitstream_io::huffman::HuffmanTreeError [−][src]
pub enum HuffmanTreeError { InvalidBit, MissingLeaf, DuplicateLeaf, OrphanedLeaf, }
An error type during Huffman tree compilation.
Variants
InvalidBit
One of the bits in a Huffman code is not 0 or 1
MissingLeaf
A Huffman code in the specification has no defined symbol
DuplicateLeaf
The same Huffman code specifies multiple symbols
OrphanedLeaf
A Huffman code is the prefix of some longer code
Trait Implementations
impl PartialEq for HuffmanTreeError
[src]
impl PartialEq for HuffmanTreeError
fn eq(&self, other: &HuffmanTreeError) -> bool
[src]
fn eq(&self, other: &HuffmanTreeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Copy for HuffmanTreeError
[src]
impl Copy for HuffmanTreeError
impl Clone for HuffmanTreeError
[src]
impl Clone for HuffmanTreeError
fn clone(&self) -> HuffmanTreeError
[src]
fn clone(&self) -> HuffmanTreeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for HuffmanTreeError
[src]
impl Debug for HuffmanTreeError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for HuffmanTreeError
[src]
impl Display for HuffmanTreeError
Auto Trait Implementations
impl Send for HuffmanTreeError
impl Send for HuffmanTreeError
impl Sync for HuffmanTreeError
impl Sync for HuffmanTreeError