pub enum HuffmanDecoderError {
PaddingTooLarge,
InvalidPadding,
EOSInString,
}Expand description
Represents the error variants that the HuffmanDecoder can return.
Variants§
PaddingTooLarge
Any padding strictly larger than 7 bits MUST be interpreted as an error
InvalidPadding
Any padding that does not correspond to the most significant bits of EOS MUST be interpreted as an error.
EOSInString
If EOS is ever found in the string, it causes an error.
Trait Implementations§
Source§impl Clone for HuffmanDecoderError
impl Clone for HuffmanDecoderError
Source§fn clone(&self) -> HuffmanDecoderError
fn clone(&self) -> HuffmanDecoderError
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 HuffmanDecoderError
impl Debug for HuffmanDecoderError
Source§impl PartialEq for HuffmanDecoderError
impl PartialEq for HuffmanDecoderError
impl Copy for HuffmanDecoderError
impl StructuralPartialEq for HuffmanDecoderError
Auto Trait Implementations§
impl Freeze for HuffmanDecoderError
impl RefUnwindSafe for HuffmanDecoderError
impl Send for HuffmanDecoderError
impl Sync for HuffmanDecoderError
impl Unpin for HuffmanDecoderError
impl UnwindSafe for HuffmanDecoderError
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