#[non_exhaustive]pub enum DecompressLiteralsError {
MissingCompressedSize,
MissingNumStreams,
GetBitsError(GetBitsError),
HuffmanTableError(HuffmanTableError),
HuffmanDecoderError(HuffmanDecoderError),
UninitializedHuffmanTable,
MissingBytesForJumpHeader {
got: usize,
},
MissingBytesForLiterals {
got: usize,
needed: usize,
},
ExtraPadding {
skipped_bits: i32,
},
BitstreamReadMismatch {
read_til: isize,
expected: isize,
},
DecodedLiteralCountMismatch {
decoded: usize,
expected: usize,
},
}
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.
MissingCompressedSize
MissingNumStreams
GetBitsError(GetBitsError)
HuffmanTableError(HuffmanTableError)
HuffmanDecoderError(HuffmanDecoderError)
UninitializedHuffmanTable
MissingBytesForJumpHeader
MissingBytesForLiterals
ExtraPadding
BitstreamReadMismatch
DecodedLiteralCountMismatch
Trait Implementations§
source§impl Debug for DecompressLiteralsError
impl Debug for DecompressLiteralsError
source§impl Display for DecompressLiteralsError
impl Display for DecompressLiteralsError
source§impl Error for DecompressLiteralsError
impl Error for DecompressLiteralsError
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<DecompressLiteralsError> for DecompressBlockError
impl From<DecompressLiteralsError> for DecompressBlockError
source§fn from(original: DecompressLiteralsError) -> DecompressBlockError
fn from(original: DecompressLiteralsError) -> DecompressBlockError
Converts to this type from the input type.
source§impl From<GetBitsError> for DecompressLiteralsError
impl From<GetBitsError> for DecompressLiteralsError
source§fn from(original: GetBitsError) -> DecompressLiteralsError
fn from(original: GetBitsError) -> DecompressLiteralsError
Converts to this type from the input type.
source§impl From<HuffmanDecoderError> for DecompressLiteralsError
impl From<HuffmanDecoderError> for DecompressLiteralsError
source§fn from(original: HuffmanDecoderError) -> DecompressLiteralsError
fn from(original: HuffmanDecoderError) -> DecompressLiteralsError
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.
Auto Trait Implementations§
impl RefUnwindSafe for DecompressLiteralsError
impl Send for DecompressLiteralsError
impl Sync for DecompressLiteralsError
impl Unpin for DecompressLiteralsError
impl UnwindSafe for DecompressLiteralsError
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