#[non_exhaustive]pub enum BlockMapError {
Identification(IdentificationError),
Module(ModuleError),
Strtab(StrtabError),
Symtab(SymtabError),
}
Expand description
Potential errors when mapping a single bitstream block.
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.
Identification(IdentificationError)
We couldn’t map the identification block.
Module(ModuleError)
We couldn’t map the module block.
Strtab(StrtabError)
We couldn’t map the string table.
Symtab(SymtabError)
We couldn’t map the symbol table.
Trait Implementations§
Source§impl Debug for BlockMapError
impl Debug for BlockMapError
Source§impl Display for BlockMapError
impl Display for BlockMapError
Source§impl Error for BlockMapError
impl Error for BlockMapError
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<BlockMapError> for Error
impl From<BlockMapError> for Error
Source§fn from(source: BlockMapError) -> Self
fn from(source: BlockMapError) -> Self
Converts to this type from the input type.
Source§impl From<IdentificationError> for BlockMapError
impl From<IdentificationError> for BlockMapError
Source§fn from(source: IdentificationError) -> Self
fn from(source: IdentificationError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleError> for BlockMapError
impl From<ModuleError> for BlockMapError
Source§fn from(source: ModuleError) -> Self
fn from(source: ModuleError) -> Self
Converts to this type from the input type.
Source§impl From<StrtabError> for BlockMapError
impl From<StrtabError> for BlockMapError
Source§fn from(source: StrtabError) -> Self
fn from(source: StrtabError) -> Self
Converts to this type from the input type.
Source§impl From<SymtabError> for BlockMapError
impl From<SymtabError> for BlockMapError
Source§fn from(source: SymtabError) -> Self
fn from(source: SymtabError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockMapError
impl RefUnwindSafe for BlockMapError
impl Send for BlockMapError
impl Sync for BlockMapError
impl Unpin for BlockMapError
impl UnwindSafe for BlockMapError
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