pub enum RelocationParseError {
ParseFrom {
context: ParseContext,
value: String,
error: ParseIntError,
backtrace: Backtrace,
},
ParseTo {
context: ParseContext,
value: String,
error: ParseIntError,
backtrace: Backtrace,
},
ParseAdd {
context: ParseContext,
value: String,
error: ParseIntError,
backtrace: Backtrace,
},
RelocationKindParse {
source: RelocationKindParseError,
},
RelocationModuleParse {
source: Box<RelocationModuleParseError>,
},
UnknownAttribute {
context: ParseContext,
key: String,
backtrace: Backtrace,
},
MissingAttribute {
context: ParseContext,
attribute: String,
backtrace: Backtrace,
},
}Variants§
ParseFrom
ParseTo
ParseAdd
RelocationKindParse
Fields
§
source: RelocationKindParseErrorRelocationModuleParse
Fields
§
source: Box<RelocationModuleParseError>UnknownAttribute
MissingAttribute
Trait Implementations§
Source§impl Debug for RelocationParseError
impl Debug for RelocationParseError
Source§impl Display for RelocationParseError
impl Display for RelocationParseError
Source§impl Error for RelocationParseError
impl Error for RelocationParseError
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 RelocationParseError
impl ErrorCompat for RelocationParseError
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<Box<RelocationModuleParseError>> for RelocationParseError
impl From<Box<RelocationModuleParseError>> for RelocationParseError
Source§fn from(error: Box<RelocationModuleParseError>) -> Self
fn from(error: Box<RelocationModuleParseError>) -> Self
Converts to this type from the input type.
Source§impl From<RelocationKindParseError> for RelocationParseError
impl From<RelocationKindParseError> for RelocationParseError
Source§fn from(error: RelocationKindParseError) -> Self
fn from(error: RelocationKindParseError) -> Self
Converts to this type from the input type.
Source§impl From<RelocationParseError> for RelocationsParseError
impl From<RelocationParseError> for RelocationsParseError
Source§fn from(error: RelocationParseError) -> Self
fn from(error: RelocationParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RelocationParseError
impl RefUnwindSafe for RelocationParseError
impl Send for RelocationParseError
impl Sync for RelocationParseError
impl Unpin for RelocationParseError
impl UnwindSafe for RelocationParseError
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