pub enum InstructionError {
WrongNumArgs,
ImproperInteger,
InvalidCondCodeForInstr,
CannotTakeSBit,
WrongKindArgs,
}
Expand description
An Error type which reports unsuccessful attempts at parsing an Instruction.
Variants§
WrongNumArgs
Used when too many or too little arguments are provided to an instruction.
ImproperInteger
Used when either an integer couldn’t be parsed where it was expected, or when it is too large for a given instruction encoding type.
InvalidCondCodeForInstr
Used when the condition code doesn’t match the encoding type.
CannotTakeSBit
Used when the instruction cannot take an s-bit.
WrongKindArgs
Used when an argument of the wrong kind is provided to an instrution.
Trait Implementations§
Source§impl Clone for InstructionError
impl Clone for InstructionError
Source§fn clone(&self) -> InstructionError
fn clone(&self) -> InstructionError
Returns a duplicate of the value. Read more
1.0.0 · 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 InstructionError
impl Debug for InstructionError
Source§impl Display for InstructionError
impl Display for InstructionError
Source§impl Error for InstructionError
impl Error for InstructionError
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 InstructionError
impl PartialEq for InstructionError
impl Copy for InstructionError
impl Eq for InstructionError
impl StructuralPartialEq for InstructionError
Auto Trait Implementations§
impl Freeze for InstructionError
impl RefUnwindSafe for InstructionError
impl Send for InstructionError
impl Sync for InstructionError
impl Unpin for InstructionError
impl UnwindSafe for InstructionError
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