#[repr(u8)]pub enum TotalControlFlow {
Halt = 96,
HaltIf = 97,
JumpForwardIf = 99,
}
Expand description
Control flow operations that keep the program total.
Variants§
Halt = 96
0x60
Opcode associated with the TotalControlFlow::Halt operation.
HaltIf = 97
0x61
Opcode associated with the TotalControlFlow::HaltIf operation.
JumpForwardIf = 99
0x63
Opcode associated with the TotalControlFlow::JumpForwardIf operation.
Trait Implementations§
source§impl Clone for TotalControlFlow
impl Clone for TotalControlFlow
source§fn clone(&self) -> TotalControlFlow
fn clone(&self) -> TotalControlFlow
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 TotalControlFlow
impl Debug for TotalControlFlow
source§impl From<TotalControlFlow> for Constraint
impl From<TotalControlFlow> for Constraint
source§fn from(subgroup: TotalControlFlow) -> Constraint
fn from(subgroup: TotalControlFlow) -> Constraint
Converts to this type from the input type.
source§impl Hash for TotalControlFlow
impl Hash for TotalControlFlow
source§impl Ord for TotalControlFlow
impl Ord for TotalControlFlow
source§fn cmp(&self, other: &TotalControlFlow) -> Ordering
fn cmp(&self, other: &TotalControlFlow) -> 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 ParseOp for TotalControlFlow
impl ParseOp for TotalControlFlow
source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<TotalControlFlow as ParseOp>::Op, <TotalControlFlow as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<TotalControlFlow as ParseOp>::Op, <TotalControlFlow as ParseOp>::Error>
Attempt to parse the operation associated with the opcode from the given bytes.
Only consumes the bytes necessary to construct any associated data.
Returns an error in the case that the given bytes
iterator
contains insufficient bytes to parse the op.
§type Op = TotalControlFlow
type Op = TotalControlFlow
The operation associated with the opcode.
§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Any error that might occur while parsing.
source§impl PartialEq for TotalControlFlow
impl PartialEq for TotalControlFlow
source§fn eq(&self, other: &TotalControlFlow) -> bool
fn eq(&self, other: &TotalControlFlow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TotalControlFlow
impl PartialOrd for TotalControlFlow
source§fn partial_cmp(&self, other: &TotalControlFlow) -> Option<Ordering>
fn partial_cmp(&self, other: &TotalControlFlow) -> 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 moresource§impl TryFrom<u8> for TotalControlFlow
impl TryFrom<u8> for TotalControlFlow
§type Error = InvalidOpcodeError
type Error = InvalidOpcodeError
The type returned in the event of a conversion error.
source§fn try_from(
u: u8,
) -> Result<TotalControlFlow, <TotalControlFlow as TryFrom<u8>>::Error>
fn try_from( u: u8, ) -> Result<TotalControlFlow, <TotalControlFlow as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for TotalControlFlow
impl Eq for TotalControlFlow
impl StructuralPartialEq for TotalControlFlow
Auto Trait Implementations§
impl Freeze for TotalControlFlow
impl RefUnwindSafe for TotalControlFlow
impl Send for TotalControlFlow
impl Sync for TotalControlFlow
impl Unpin for TotalControlFlow
impl UnwindSafe for TotalControlFlow
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