Enum ruzstd::huff0::HuffmanTableError
source · #[non_exhaustive]pub enum HuffmanTableError {
Show 14 variants
GetBitsError(GetBitsError),
FSEDecoderError(FSEDecoderError),
FSETableError(FSETableError),
SourceIsEmpty,
NotEnoughBytesForWeights {
got_bytes: usize,
expected_bytes: u8,
},
ExtraPadding {
skipped_bits: i32,
},
TooManyWeights {
got: usize,
},
MissingWeights,
LeftoverIsNotAPowerOf2 {
got: u32,
},
NotEnoughBytesToDecompressWeights {
have: usize,
need: usize,
},
FSETableUsedTooManyBytes {
used: usize,
available_bytes: u8,
},
NotEnoughBytesInSource {
got: usize,
need: usize,
},
WeightBiggerThanMaxNumBits {
got: u8,
},
MaxBitsTooHigh {
got: u8,
},
}
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.
GetBitsError(GetBitsError)
FSEDecoderError(FSEDecoderError)
FSETableError(FSETableError)
SourceIsEmpty
NotEnoughBytesForWeights
ExtraPadding
TooManyWeights
MissingWeights
LeftoverIsNotAPowerOf2
NotEnoughBytesToDecompressWeights
FSETableUsedTooManyBytes
NotEnoughBytesInSource
WeightBiggerThanMaxNumBits
MaxBitsTooHigh
Trait Implementations§
source§impl Debug for HuffmanTableError
impl Debug for HuffmanTableError
source§impl Display for HuffmanTableError
impl Display for HuffmanTableError
source§impl Error for HuffmanTableError
impl Error for HuffmanTableError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FSEDecoderError> for HuffmanTableError
impl From<FSEDecoderError> for HuffmanTableError
source§fn from(original: FSEDecoderError) -> HuffmanTableError
fn from(original: FSEDecoderError) -> HuffmanTableError
Converts to this type from the input type.
source§impl From<FSETableError> for HuffmanTableError
impl From<FSETableError> for HuffmanTableError
source§fn from(original: FSETableError) -> HuffmanTableError
fn from(original: FSETableError) -> HuffmanTableError
Converts to this type from the input type.
source§impl From<GetBitsError> for HuffmanTableError
impl From<GetBitsError> for HuffmanTableError
source§fn from(original: GetBitsError) -> HuffmanTableError
fn from(original: GetBitsError) -> HuffmanTableError
Converts to this type from the input type.
source§impl From<HuffmanTableError> for DecompressLiteralsError
impl From<HuffmanTableError> for DecompressLiteralsError
source§fn from(original: HuffmanTableError) -> DecompressLiteralsError
fn from(original: HuffmanTableError) -> DecompressLiteralsError
Converts to this type from the input type.
source§impl From<HuffmanTableError> for DictionaryDecodeError
impl From<HuffmanTableError> for DictionaryDecodeError
source§fn from(original: HuffmanTableError) -> DictionaryDecodeError
fn from(original: HuffmanTableError) -> DictionaryDecodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HuffmanTableError
impl Send for HuffmanTableError
impl Sync for HuffmanTableError
impl Unpin for HuffmanTableError
impl UnwindSafe for HuffmanTableError
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