#[non_exhaustive]pub enum HuffmanDecoderError {
PaddingTooLarge,
InvalidPadding,
EOSInString,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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 Display for HuffmanDecoderError
impl Display for HuffmanDecoderError
Source§impl Error for HuffmanDecoderError
impl Error for HuffmanDecoderError
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 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