pub enum HuffmanError {
InvalidCode,
InvalidSelection,
MissingTables,
UnexpectedOob,
}Expand description
Errors related to Huffman decoding.
Variants§
InvalidCode
Invalid Huffman code sequence.
InvalidSelection
Invalid Huffman table selection.
MissingTables
Not enough referred Huffman tables.
UnexpectedOob
Unexpected out-of-band value.
Trait Implementations§
Source§impl Clone for HuffmanError
impl Clone for HuffmanError
Source§fn clone(&self) -> HuffmanError
fn clone(&self) -> HuffmanError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HuffmanError
impl Debug for HuffmanError
Source§impl Display for HuffmanError
impl Display for HuffmanError
Source§impl Error for HuffmanError
impl Error for HuffmanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<HuffmanError> for DecodeError
impl From<HuffmanError> for DecodeError
Source§fn from(e: HuffmanError) -> Self
fn from(e: HuffmanError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HuffmanError
impl PartialEq for HuffmanError
impl Copy for HuffmanError
impl Eq for HuffmanError
impl StructuralPartialEq for HuffmanError
Auto Trait Implementations§
impl Freeze for HuffmanError
impl RefUnwindSafe for HuffmanError
impl Send for HuffmanError
impl Sync for HuffmanError
impl Unpin for HuffmanError
impl UnsafeUnpin for HuffmanError
impl UnwindSafe for HuffmanError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more