#[non_exhaustive]pub enum RecordMapError {
Comdat(ComdatError),
DataLayout(DataLayoutError),
Function(FunctionError),
BadRecordString(RecordStringError),
}
Expand description
Potential errors when mapping a single bitstream record.
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.
Comdat(ComdatError)
Mapping a COMDAT record failed.
DataLayout(DataLayoutError)
Parsing the datalayout specification failed.
Function(FunctionError)
Mapping a function record failed.
BadRecordString(RecordStringError)
We encountered a string we couldn’t extract.
Trait Implementations§
Source§impl Debug for RecordMapError
impl Debug for RecordMapError
Source§impl Display for RecordMapError
impl Display for RecordMapError
Source§impl Error for RecordMapError
impl Error for RecordMapError
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<ComdatError> for RecordMapError
impl From<ComdatError> for RecordMapError
Source§fn from(source: ComdatError) -> Self
fn from(source: ComdatError) -> Self
Converts to this type from the input type.
Source§impl From<DataLayoutError> for RecordMapError
impl From<DataLayoutError> for RecordMapError
Source§fn from(source: DataLayoutError) -> Self
fn from(source: DataLayoutError) -> Self
Converts to this type from the input type.
Source§impl From<FunctionError> for RecordMapError
impl From<FunctionError> for RecordMapError
Source§fn from(source: FunctionError) -> Self
fn from(source: FunctionError) -> Self
Converts to this type from the input type.
Source§impl From<RecordStringError> for RecordMapError
impl From<RecordStringError> for RecordMapError
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 RecordMapError
impl RefUnwindSafe for RecordMapError
impl Send for RecordMapError
impl Sync for RecordMapError
impl Unpin for RecordMapError
impl UnwindSafe for RecordMapError
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