pub enum OperationError {
HaltError,
Panic(String),
InvalidArgumentType {
expected: ArgumentType,
provided: ArgumentType,
},
MemoryError(MemoryError),
CannotReturnFromEmptyStack,
MismatchedInstruction(Instruction),
}
Variants§
HaltError
The processor should HALT,
Panic(String)
The processor should HALT and an error message should be displayed,
InvalidArgumentType
An invalid argument has been provided to an operation call,
MemoryError(MemoryError)
A memory error occurred during a memory operation,
CannotReturnFromEmptyStack
The stack is empty but a pop() had been required,
MismatchedInstruction(Instruction)
The specified instruction matches no operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnwindSafe for OperationError
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