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 more
sourceimpl Debug for HuffmanTreeError
impl Debug for HuffmanTreeError
sourceimpl Display for HuffmanTreeError
impl Display for HuffmanTreeError
sourceimpl Error for HuffmanTreeError
impl Error for HuffmanTreeError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<HuffmanTreeError> for HuffmanTreeError
impl PartialEq<HuffmanTreeError> for HuffmanTreeError
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more