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§impl PartialOrd for ProgramControlFlow
impl PartialOrd for ProgramControlFlow
impl 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§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