pub enum ExecStep<Site> {
Stop,
Fail,
Next,
Jump(u16),
Call(Site),
Ret(Site),
}
Expand description
Turing machine movement after instruction execution
Variants§
Stop
Stop program execution.
Fail
Set CK
to Fail
. The program execution will halt if CH
is set.
Next
Move to the next instruction.
Jump(u16)
Jump to the offset from the origin.
Call(Site)
Jump to another code fragment.
Ret(Site)
Return to the next instruction after the original caller position.
Trait Implementations§
Source§impl<Site> Ord for ExecStep<Site>where
Site: Ord,
impl<Site> Ord for ExecStep<Site>where
Site: Ord,
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Site> PartialOrd for ExecStep<Site>where
Site: PartialOrd,
impl<Site> PartialOrd for ExecStep<Site>where
Site: PartialOrd,
impl<Site> Copy for ExecStep<Site>where
Site: Copy,
impl<Site> Eq for ExecStep<Site>where
Site: Eq,
impl<Site> StructuralPartialEq for ExecStep<Site>
Auto Trait Implementations§
impl<Site> Freeze for ExecStep<Site>where
Site: Freeze,
impl<Site> RefUnwindSafe for ExecStep<Site>where
Site: RefUnwindSafe,
impl<Site> Send for ExecStep<Site>where
Site: Send,
impl<Site> Sync for ExecStep<Site>where
Site: Sync,
impl<Site> Unpin for ExecStep<Site>where
Site: Unpin,
impl<Site> UnwindSafe for ExecStep<Site>where
Site: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.