#[non_exhaustive]pub enum HuffmanErrorKind {
ReservedFlags(u8),
InvalidBounds {
low: i32,
high: i32,
},
InvalidRangeLength(u8),
InvalidRangePartition,
InvalidLineOrder,
InvalidSpecialLine,
DuplicateSpecialLine,
NoCodes,
Oversubscribed,
TrailingBits(u64),
NonZeroPadding,
InvalidCode,
}Expand description
Detailed malformed Huffman table or code classification.
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.
ReservedFlags(u8)
Reserved code-table flag bits were set.
InvalidBounds
The declared low/high bounds are invalid.
InvalidRangeLength(u8)
A range suffix length exceeds 32 bits.
InvalidRangePartition
Normal ranges do not exactly partition the declared interval.
InvalidLineOrder
Normal and special lines are not in normative order.
InvalidSpecialLine
A LOW, HIGH, or OOB line has invalid fields.
DuplicateSpecialLine
A special line occurs more than once.
NoCodes
The table defines no decodable codes.
Oversubscribed
Canonical prefix assignment exceeds the available code space.
TrailingBits(u64)
More than seven bits follow an encoded custom table.
NonZeroPadding
Encoded custom-table padding contains a one bit.
InvalidCode
No table line matches the coded prefix.
Trait Implementations§
Source§impl Clone for HuffmanErrorKind
impl Clone for HuffmanErrorKind
impl Copy for HuffmanErrorKind
Source§impl Debug for HuffmanErrorKind
impl Debug for HuffmanErrorKind
impl Eq for HuffmanErrorKind
Source§impl PartialEq for HuffmanErrorKind
impl PartialEq for HuffmanErrorKind
impl StructuralPartialEq for HuffmanErrorKind
Auto Trait Implementations§
impl Freeze for HuffmanErrorKind
impl RefUnwindSafe for HuffmanErrorKind
impl Send for HuffmanErrorKind
impl Sync for HuffmanErrorKind
impl Unpin for HuffmanErrorKind
impl UnsafeUnpin for HuffmanErrorKind
impl UnwindSafe for HuffmanErrorKind
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