Enum bitstream_io::huffman::HuffmanTreeError
source · pub enum HuffmanTreeError {
InvalidBit,
MissingLeaf,
DuplicateLeaf,
OrphanedLeaf,
}
Expand description
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
sourceimpl Clone for HuffmanTreeError
impl Clone for HuffmanTreeError
sourcefn clone(&self) -> HuffmanTreeError
fn clone(&self) -> HuffmanTreeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HuffmanTreeError
impl Debug for HuffmanTreeError
sourceimpl Display for HuffmanTreeError
impl Display for HuffmanTreeError
sourceimpl PartialEq<HuffmanTreeError> for HuffmanTreeError
impl PartialEq<HuffmanTreeError> for HuffmanTreeError
sourcefn eq(&self, other: &HuffmanTreeError) -> bool
fn eq(&self, other: &HuffmanTreeError) -> bool
impl Copy for HuffmanTreeError
impl StructuralPartialEq for HuffmanTreeError
Auto Trait Implementations
impl RefUnwindSafe for HuffmanTreeError
impl Send for HuffmanTreeError
impl Sync for HuffmanTreeError
impl Unpin for HuffmanTreeError
impl UnwindSafe for HuffmanTreeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more