Enum jtex::NintendoLzError
source · #[non_exhaustive]pub enum NintendoLzError {
InvalidMagicNumber(InvalidMagicNumberError),
OutOfRange(OutOfRangeError),
Unknown(Box<dyn StdError>),
}Expand description
A wrapper error type for errors that come from nintendo-lz.
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.
InvalidMagicNumber(InvalidMagicNumberError)
The magic number for the format is invalid.
OutOfRange(OutOfRangeError)
A configured parameter is out of range.
Unknown(Box<dyn StdError>)
Any other error that may come from nintendo-lz, including standard
errors.
Trait Implementations§
source§impl Debug for NintendoLzError
impl Debug for NintendoLzError
source§impl Display for NintendoLzError
impl Display for NintendoLzError
source§impl Error for NintendoLzError
impl Error for NintendoLzError
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<NintendoLzError> for Error
impl From<NintendoLzError> for Error
source§fn from(source: NintendoLzError) -> Self
fn from(source: NintendoLzError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NintendoLzError
impl !Send for NintendoLzError
impl !Sync for NintendoLzError
impl Unpin for NintendoLzError
impl !UnwindSafe for NintendoLzError
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