pub enum ProgramControlFlow {
Pc(usize),
Halt,
}
Expand description
Update the program to a new position or halt it.
Variants§
Trait Implementations§
source§impl Clone for ProgramControlFlow
impl Clone for ProgramControlFlow
source§fn clone(&self) -> ProgramControlFlow
fn clone(&self) -> ProgramControlFlow
Returns a copy of the value. Read more
1.0.0 · 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 ProgramControlFlow
impl Debug for ProgramControlFlow
source§impl Hash for ProgramControlFlow
impl Hash for ProgramControlFlow
source§impl Ord for ProgramControlFlow
impl Ord for ProgramControlFlow
source§fn cmp(&self, other: &ProgramControlFlow) -> Ordering
fn cmp(&self, other: &ProgramControlFlow) -> Ordering
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 PartialEq for ProgramControlFlow
impl PartialEq for ProgramControlFlow
source§fn eq(&self, other: &ProgramControlFlow) -> bool
fn eq(&self, other: &ProgramControlFlow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProgramControlFlow
impl PartialOrd for ProgramControlFlow
source§fn partial_cmp(&self, other: &ProgramControlFlow) -> Option<Ordering>
fn partial_cmp(&self, other: &ProgramControlFlow) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ProgramControlFlow
impl Eq for ProgramControlFlow
impl StructuralPartialEq for ProgramControlFlow
Auto Trait Implementations§
impl Freeze for ProgramControlFlow
impl RefUnwindSafe for ProgramControlFlow
impl Send for ProgramControlFlow
impl Sync for ProgramControlFlow
impl Unpin for ProgramControlFlow
impl UnwindSafe for ProgramControlFlow
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more