Enum baby_emulator::assembler::parser::errors::InstructionError
source · pub enum InstructionError {
UnkownInstruction(String),
OperandValueParseError(Instruction, ValueParseError),
}Expand description
Thrown when errors are found parsing Baby asm instructions.
Variants§
UnkownInstruction(String)
A given instruction isn’t correct.
OperandValueParseError(Instruction, ValueParseError)
Attempting to parse a instructions operand threw an error.
Trait Implementations§
source§impl Debug for InstructionError
impl Debug for InstructionError
source§impl ParseError for InstructionError
impl ParseError for InstructionError
source§impl PartialEq<InstructionError> for InstructionError
impl PartialEq<InstructionError> for InstructionError
source§fn eq(&self, other: &InstructionError) -> bool
fn eq(&self, other: &InstructionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InstructionError
Auto Trait Implementations§
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