#[non_exhaustive]pub enum DisassemblyError {
UnexpectedEof {
offset: usize,
},
UnknownOpcode {
opcode: u8,
offset: usize,
},
OperandTooLarge {
offset: usize,
len: usize,
},
}Expand description
Errors returned during bytecode disassembly.
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.
UnexpectedEof
Input ended unexpectedly while decoding an instruction operand.
UnknownOpcode
An opcode byte was not recognized by the opcode table.
OperandTooLarge
A length-prefixed operand exceeded the supported maximum size.
Trait Implementations§
Source§impl Debug for DisassemblyError
impl Debug for DisassemblyError
Source§impl Display for DisassemblyError
impl Display for DisassemblyError
Source§impl Error for DisassemblyError
impl Error for DisassemblyError
1.30.0 · 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<DisassemblyError> for Error
impl From<DisassemblyError> for Error
Source§fn from(source: DisassemblyError) -> Self
fn from(source: DisassemblyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DisassemblyError
impl RefUnwindSafe for DisassemblyError
impl Send for DisassemblyError
impl Sync for DisassemblyError
impl Unpin for DisassemblyError
impl UnwindSafe for DisassemblyError
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