pub enum AsmErrorKind {
UnknownMnemonic(String),
WrongOperandCount {
mnemonic: &'static str,
expected: usize,
got: usize,
},
BadRegister(String),
BadImmediate(String),
UndefinedLabel(String),
DuplicateLabel(String),
Br3NotMirrored {
neg: i64,
reachable: i64,
pos: i64,
},
DuplicateEquate(String),
BadEquate(String),
ImmediateOutOfRange {
value: i64,
},
}Expand description
The kinds of assembly failure.
Variants§
UnknownMnemonic(String)
No instruction has this mnemonic.
WrongOperandCount
Wrong number of operands for the instruction’s format.
Fields
BadRegister(String)
An operand that should have been a register was not.
BadImmediate(String)
An operand that should have been an immediate or label was not.
UndefinedLabel(String)
A label operand that never appears as a definition.
DuplicateLabel(String)
The same label defined twice.
Br3NotMirrored
The two br3 targets are not mirrored about the branch.
Fields
DuplicateEquate(String)
The same name given to two .equ directives, or to an .equ and a
label.
BadEquate(String)
An .equ directive whose operands are not a name and a number.
ImmediateOutOfRange
A resolved offset or literal does not fit twelve trits.
Trait Implementations§
Source§impl Clone for AsmErrorKind
impl Clone for AsmErrorKind
Source§fn clone(&self) -> AsmErrorKind
fn clone(&self) -> AsmErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AsmErrorKind
impl Debug for AsmErrorKind
impl Eq for AsmErrorKind
Source§impl PartialEq for AsmErrorKind
impl PartialEq for AsmErrorKind
Source§fn eq(&self, other: &AsmErrorKind) -> bool
fn eq(&self, other: &AsmErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AsmErrorKind
Auto Trait Implementations§
impl Freeze for AsmErrorKind
impl RefUnwindSafe for AsmErrorKind
impl Send for AsmErrorKind
impl Sync for AsmErrorKind
impl Unpin for AsmErrorKind
impl UnsafeUnpin for AsmErrorKind
impl UnwindSafe for AsmErrorKind
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