pub enum Exit {
NegativePointer,
IllegalMode(isize),
IllegalInstruction(isize),
Input,
Output(isize),
Halted,
}
Expand description
Errors that can occur during execution.
Variants§
NegativePointer
Attempted to use a negative value as a pointer.
IllegalMode(isize)
Encountered an unknown parameter mode.
IllegalInstruction(isize)
Encountered an unknown instruction.
Input
The program encountered an in
instruction and needs to take input.
Output(isize)
The program encountered an out
instruction and needs to return output.
Halted
Encountered a halt instruction (99).
Trait Implementations§
impl StructuralPartialEq for Exit
Auto Trait Implementations§
impl Freeze for Exit
impl RefUnwindSafe for Exit
impl Send for Exit
impl Sync for Exit
impl Unpin for Exit
impl UnwindSafe for Exit
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