#[non_exhaustive]pub enum LiteralsSectionParseError {
IllegalLiteralSectionType {
got: u8,
},
GetBitsError(GetBitsError),
NotEnoughBytes {
have: usize,
need: 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.
Trait Implementations§
source§impl Debug for LiteralsSectionParseError
impl Debug for LiteralsSectionParseError
source§impl Display for LiteralsSectionParseError
impl Display for LiteralsSectionParseError
source§impl Error for LiteralsSectionParseError
impl Error for LiteralsSectionParseError
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 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.
source§impl From<LiteralsSectionParseError> for DecompressBlockError
impl From<LiteralsSectionParseError> for DecompressBlockError
source§fn from(original: LiteralsSectionParseError) -> DecompressBlockError
fn from(original: LiteralsSectionParseError) -> DecompressBlockError
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for LiteralsSectionParseError
impl Send for LiteralsSectionParseError
impl Sync for LiteralsSectionParseError
impl Unpin for LiteralsSectionParseError
impl UnwindSafe for LiteralsSectionParseError
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