pub enum InstructionReadError {
Show 26 variants
AssemblyParseError(AssemblyParseError),
UnknownRegister(String),
InvalidNumber(String, ParseIntError),
InvalidBigNumber(String, ParseBigIntError),
InvalidLabeledConstant(String),
InvalidArgument {
index: usize,
expected: &'static str,
found: String,
},
InvalidGenericOperand(String),
InvalidAbsoluteLikeAddress(String),
InvalidLabeledConstantOperand(String),
InvalidOperandImmInRegLocation(String),
InvalidOperandForGenericLocation {
index: usize,
found: FullOperand,
},
InvalidOperandForRegLocation {
index: usize,
found: FullOperand,
},
InvalidOperandForRegImmLocation {
index: usize,
found: FullOperand,
},
InvalidRegImmInPlaceOfReg {
index: usize,
found: NonMemoryOperand,
},
InvalidOperandForLabelLocation {
index: usize,
found: FullOperand,
},
InvalidArgumentCount {
expected: usize,
found: usize,
},
UnknownArgument(String),
UnexpectedSubtraction,
IntegerOverflow,
UnknownLabel(String),
UnknownMnemonic(String),
UnexpectedConstant(String),
UnexpectedInstruction(String),
DuplicateModifier(String),
TooManyOpcodes(u64, u64),
CodeIsTooLong(u64, u64),
}Variants§
AssemblyParseError(AssemblyParseError)
Failed to parse text assembly
UnknownRegister(String)
The unknown register error.
InvalidNumber(String, ParseIntError)
The invalid number error.
InvalidBigNumber(String, ParseBigIntError)
The invalid big number error.
InvalidLabeledConstant(String)
The invalid instruction argument.
InvalidArgument
The invalid instruction argument.
Fields
InvalidGenericOperand(String)
InvalidAbsoluteLikeAddress(String)
InvalidLabeledConstantOperand(String)
InvalidOperandImmInRegLocation(String)
The invalid instruction argument.
InvalidOperandForGenericLocation
InvalidOperandForRegLocation
The invalid instruction argument.
InvalidOperandForRegImmLocation
InvalidRegImmInPlaceOfReg
InvalidOperandForLabelLocation
The invalid instruction argument.
InvalidArgumentCount
The invalid number of arguments.
Fields
UnknownArgument(String)
The unknown argument error.
UnexpectedSubtraction
IntegerOverflow
UnknownLabel(String)
UnknownMnemonic(String)
UnexpectedConstant(String)
UnexpectedInstruction(String)
DuplicateModifier(String)
TooManyOpcodes(u64, u64)
CodeIsTooLong(u64, u64)
Trait Implementations§
Source§impl Debug for InstructionReadError
impl Debug for InstructionReadError
Source§impl Display for InstructionReadError
impl Display for InstructionReadError
Source§impl Error for InstructionReadError
impl Error for InstructionReadError
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 PartialEq for InstructionReadError
impl PartialEq for InstructionReadError
impl StructuralPartialEq for InstructionReadError
Auto Trait Implementations§
impl Freeze for InstructionReadError
impl RefUnwindSafe for InstructionReadError
impl Send for InstructionReadError
impl Sync for InstructionReadError
impl Unpin for InstructionReadError
impl UnsafeUnpin for InstructionReadError
impl UnwindSafe for InstructionReadError
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