#[non_exhaustive]pub enum ComdatError {
V1Unsupported,
TooShort(usize),
Name(StrtabError),
SelectionKind(TryFromPrimitiveError<SelectionKind>),
Map(MapError),
}
Expand description
Errors that can occur when mapping a COMDAT 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.
V1Unsupported
The COMDAT record is in an old unsupported format.
TooShort(usize)
The COMDAT record is too short.
Name(StrtabError)
We couldn’t get the COMDAT’s name from the string table.
SelectionKind(TryFromPrimitiveError<SelectionKind>)
The COMDAT’s selection kind is invalid or unknown.
Map(MapError)
A generic mapping error occured.
Trait Implementations§
Source§impl Debug for ComdatError
impl Debug for ComdatError
Source§impl Display for ComdatError
impl Display for ComdatError
Source§impl Error for ComdatError
impl Error for ComdatError
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 ModuleError
impl From<ComdatError> for ModuleError
Source§fn from(source: ComdatError) -> Self
fn from(source: ComdatError) -> Self
Converts to this type from the input type.
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<MapError> for ComdatError
impl From<MapError> for ComdatError
Source§impl From<StrtabError> for ComdatError
impl From<StrtabError> for ComdatError
Source§fn from(source: StrtabError) -> Self
fn from(source: StrtabError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromPrimitiveError<SelectionKind>> for ComdatError
impl From<TryFromPrimitiveError<SelectionKind>> for ComdatError
Source§fn from(source: TryFromPrimitiveError<SelectionKind>) -> Self
fn from(source: TryFromPrimitiveError<SelectionKind>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComdatError
impl RefUnwindSafe for ComdatError
impl Send for ComdatError
impl Sync for ComdatError
impl Unpin for ComdatError
impl UnwindSafe for ComdatError
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