pub enum MapError {
BadBlockMap(String),
Inconsistent(ConsistencyError),
Unsupported(String),
Invalid(String),
RecordString(RecordStringError),
Context(MapCtxError),
}
Expand description
Generic errors that can occur when mapping.
Variants§
BadBlockMap(String)
We couldn’t map a block, for any number of reasons.
Inconsistent(ConsistencyError)
We encountered an inconsistent block or record state.
Unsupported(String)
We encountered an unsupported feature or layout.
Invalid(String)
We encountered an invalid state or combination of states.
This variant should be used extremely sparingly.
RecordString(RecordStringError)
We couldn’t extract a string from a record.
Context(MapCtxError)
We don’t have the appropriate context for a mapping operation.
Trait Implementations§
Source§impl Error for MapError
impl Error for MapError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ConsistencyError> for MapError
impl From<ConsistencyError> for MapError
Source§fn from(source: ConsistencyError) -> Self
fn from(source: ConsistencyError) -> Self
Converts to this type from the input type.
Source§impl From<MapCtxError> for MapError
impl From<MapCtxError> for MapError
Source§fn from(source: MapCtxError) -> Self
fn from(source: MapCtxError) -> Self
Converts to this type from the input type.
Source§impl From<MapError> for AttributeError
impl From<MapError> for AttributeError
Source§impl From<MapError> for ComdatError
impl From<MapError> for ComdatError
Source§impl From<MapError> for IdentificationError
impl From<MapError> for IdentificationError
Source§impl From<MapError> for ModuleError
impl From<MapError> for ModuleError
Source§impl From<MapError> for StrtabError
impl From<MapError> for StrtabError
Source§impl From<MapError> for SymtabError
impl From<MapError> for SymtabError
Source§impl From<MapError> for TypeTableError
impl From<MapError> for TypeTableError
Source§impl From<RecordStringError> for MapError
impl From<RecordStringError> for MapError
Source§fn from(source: RecordStringError) -> Self
fn from(source: RecordStringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapError
impl RefUnwindSafe for MapError
impl Send for MapError
impl Sync for MapError
impl Unpin for MapError
impl UnwindSafe for MapError
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