pub enum AssembleError {
Empty,
UnknownMnemonic(String),
BadOperand(String, &'static str),
WrongArity {
mnemonic: String,
expected: usize,
got: usize,
},
ImmediateOverflow {
value: u64,
bits: u8,
},
OffsetOverflow(i64),
BadRegister(u32),
NotRecognised,
}Expand description
Errors the assembler surfaces. Each one points at the specific shape that failed to parse / encode, so the decompile-time byte-drop pass can keep bytes pinned for the lines we can’t yet handle (typically symbolic forms).
Variants§
Empty
UnknownMnemonic(String)
BadOperand(String, &'static str)
WrongArity
ImmediateOverflow
OffsetOverflow(i64)
BadRegister(u32)
NotRecognised
Trait Implementations§
Source§impl Debug for AssembleError
impl Debug for AssembleError
Source§impl Display for AssembleError
impl Display for AssembleError
Source§impl Error for AssembleError
impl Error for AssembleError
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()
Auto Trait Implementations§
impl Freeze for AssembleError
impl RefUnwindSafe for AssembleError
impl Send for AssembleError
impl Sync for AssembleError
impl Unpin for AssembleError
impl UnsafeUnpin for AssembleError
impl UnwindSafe for AssembleError
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