Enum ruzstd::decoding::bit_reader::GetBitsError
source · #[non_exhaustive]pub enum GetBitsError {
TooManyBits {
num_requested_bits: usize,
limit: u8,
},
NotEnoughRemainingBits {
requested: usize,
remaining: 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.
Trait Implementations§
source§impl Debug for GetBitsError
impl Debug for GetBitsError
source§impl Display for GetBitsError
impl Display for GetBitsError
source§impl Error for GetBitsError
impl Error for GetBitsError
1.30.0 · 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<GetBitsError> for DecodeSequenceError
impl From<GetBitsError> for DecodeSequenceError
source§fn from(original: GetBitsError) -> DecodeSequenceError
fn from(original: GetBitsError) -> DecodeSequenceError
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<GetBitsError> for FSEDecoderError
impl From<GetBitsError> for FSEDecoderError
source§fn from(original: GetBitsError) -> FSEDecoderError
fn from(original: GetBitsError) -> FSEDecoderError
Converts to this type from the input type.
source§impl From<GetBitsError> for FSETableError
impl From<GetBitsError> for FSETableError
source§fn from(original: GetBitsError) -> FSETableError
fn from(original: GetBitsError) -> FSETableError
Converts to this type from the input type.
source§impl From<GetBitsError> for HuffmanDecoderError
impl From<GetBitsError> for HuffmanDecoderError
source§fn from(original: GetBitsError) -> HuffmanDecoderError
fn from(original: GetBitsError) -> HuffmanDecoderError
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<GetBitsError> for LiteralsSectionParseError
impl From<GetBitsError> for LiteralsSectionParseError
source§fn from(original: GetBitsError) -> LiteralsSectionParseError
fn from(original: GetBitsError) -> LiteralsSectionParseError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for GetBitsError
impl Send for GetBitsError
impl Sync for GetBitsError
impl Unpin for GetBitsError
impl UnwindSafe for GetBitsError
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