pub enum TotalControlFlow {
Halt,
HaltIf,
JumpForwardIf,
}
Expand description
Control flow operations that keep the program total.
Variants§
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 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 ToBytes for TotalControlFlow
impl ToBytes for TotalControlFlow
§type Bytes = TotalControlFlow
type Bytes = TotalControlFlow
The iterator yielding bytes.
source§impl ToOpcode for TotalControlFlow
impl ToOpcode for TotalControlFlow
§type Opcode = TotalControlFlow
type Opcode = TotalControlFlow
The associated
Opcode
type.source§impl TryFromBytes for TotalControlFlow
impl TryFromBytes for TotalControlFlow
§type Error = FromBytesError
type Error = FromBytesError
Represents any error that might occur while parsing an op from bytes.
source§fn try_from_bytes(
bytes: &mut impl Iterator<Item = u8>,
) -> Option<Result<TotalControlFlow, <TotalControlFlow as TryFromBytes>::Error>>
fn try_from_bytes( bytes: &mut impl Iterator<Item = u8>, ) -> Option<Result<TotalControlFlow, <TotalControlFlow as TryFromBytes>::Error>>
Parse a single operation from the given iterator yielding bytes. Read more
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