pub enum RawOverlayError {
RawHeader {
source: RawHeaderError,
},
RawArm9 {
source: RawArm9Error,
},
Arm9OverlaySignatures {
source: Arm9OverlaySignaturesError,
},
InvalidSize {
backtrace: Backtrace,
},
Misaligned {
expected: usize,
actual: usize,
backtrace: Backtrace,
},
}Expand description
Errors related to Overlay.
Variants§
RawHeader
See RawHeaderError.
Fields
§
source: RawHeaderErrorSource error.
RawArm9
See RawHeaderError.
Fields
§
source: RawArm9ErrorSource error.
Arm9OverlaySignatures
Fields
§
source: Arm9OverlaySignaturesErrorSource error.
InvalidSize
Occurs when the input is not evenly divisible into a slice of Overlay.
Misaligned
Occurs when the input is less aligned than Overlay.
Trait Implementations§
Source§impl Debug for RawOverlayError
impl Debug for RawOverlayError
Source§impl Display for RawOverlayError
impl Display for RawOverlayError
Source§impl Error for RawOverlayError
impl Error for RawOverlayError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for RawOverlayError
impl ErrorCompat for RawOverlayError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<Arm9OverlaySignaturesError> for RawOverlayError
impl From<Arm9OverlaySignaturesError> for RawOverlayError
Source§fn from(error: Arm9OverlaySignaturesError) -> Self
fn from(error: Arm9OverlaySignaturesError) -> Self
Converts to this type from the input type.
Source§impl From<RawArm9Error> for RawOverlayError
impl From<RawArm9Error> for RawOverlayError
Source§fn from(error: RawArm9Error) -> Self
fn from(error: RawArm9Error) -> Self
Converts to this type from the input type.
Source§impl From<RawHeaderError> for RawOverlayError
impl From<RawHeaderError> for RawOverlayError
Source§fn from(error: RawHeaderError) -> Self
fn from(error: RawHeaderError) -> Self
Converts to this type from the input type.
Source§impl From<RawOverlayError> for RomAlignmentsError
impl From<RawOverlayError> for RomAlignmentsError
Source§fn from(error: RawOverlayError) -> Self
fn from(error: RawOverlayError) -> Self
Converts to this type from the input type.
Source§impl From<RawOverlayError> for RomExtractError
impl From<RawOverlayError> for RomExtractError
Source§fn from(error: RawOverlayError) -> Self
fn from(error: RawOverlayError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RawOverlayError
impl RefUnwindSafe for RawOverlayError
impl Send for RawOverlayError
impl Sync for RawOverlayError
impl Unpin for RawOverlayError
impl UnwindSafe for RawOverlayError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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