pub enum StepOutcome {
Ran,
Halted,
}Expand description
what one Vm::dispatch_one call did.
Ran – an ordinary instruction executed and the VM should keep going.
Halted – the VM hit Opcode::Halt (or fell off the end of main once
the call machinery lands) and execution is complete. a runtime fault is the
Err arm of the surrounding Result, not a variant here.
Variants§
Ran
an ordinary instruction ran; run should dispatch the next one.
Halted
the VM halted; run returns Ok(()).
Trait Implementations§
Source§impl Clone for StepOutcome
impl Clone for StepOutcome
Source§fn clone(&self) -> StepOutcome
fn clone(&self) -> StepOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StepOutcome
impl Debug for StepOutcome
Source§impl PartialEq for StepOutcome
impl PartialEq for StepOutcome
Source§fn eq(&self, other: &StepOutcome) -> bool
fn eq(&self, other: &StepOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StepOutcome
impl Eq for StepOutcome
impl StructuralPartialEq for StepOutcome
Auto Trait Implementations§
impl Freeze for StepOutcome
impl RefUnwindSafe for StepOutcome
impl Send for StepOutcome
impl Sync for StepOutcome
impl Unpin for StepOutcome
impl UnsafeUnpin for StepOutcome
impl UnwindSafe for StepOutcome
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