Enum essential_state_asm::opcode::Constraint  
source · #[repr(u8)]pub enum Constraint {
    Stack(Stack),
    Pred(Pred),
    Alu(Alu),
    Access(Access),
    Crypto(Crypto),
    TotalControlFlow(TotalControlFlow),
    Temporary(Temporary),
}Expand description
All operations available to the constraint checker.
Note that this is a subset of the operations available to state read execution.
Variants§
Stack(Stack)
Operations related to stack manipulation.
Pred(Pred)
Operations for computing predicates.
Alu(Alu)
Operations for computing arithmetic and logic.
Access(Access)
Operations for accessing input data.
Crypto(Crypto)
Operations providing cryptographic functionality.
TotalControlFlow(TotalControlFlow)
Control flow operations that keep the program total.
Temporary(Temporary)
Operations for temporary memory.
Trait Implementations§
source§impl Clone for Constraint
 
impl Clone for Constraint
source§fn clone(&self) -> Constraint
 
fn clone(&self) -> Constraint
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 Constraint
 
impl Debug for Constraint
source§impl From<Access> for Constraint
 
impl From<Access> for Constraint
source§fn from(subgroup: Access) -> Constraint
 
fn from(subgroup: Access) -> Constraint
Converts to this type from the input type.
source§impl From<Alu> for Constraint
 
impl From<Alu> for Constraint
source§fn from(subgroup: Alu) -> Constraint
 
fn from(subgroup: Alu) -> Constraint
Converts to this type from the input type.
source§impl From<Crypto> for Constraint
 
impl From<Crypto> for Constraint
source§fn from(subgroup: Crypto) -> Constraint
 
fn from(subgroup: Crypto) -> Constraint
Converts to this type from the input type.
source§impl From<Constraint> for StateRead
 
impl From<Constraint> for StateRead
source§fn from(subgroup: Constraint) -> Self
 
fn from(subgroup: Constraint) -> Self
Converts to this type from the input type.
source§impl From<Pred> for Constraint
 
impl From<Pred> for Constraint
source§fn from(subgroup: Pred) -> Constraint
 
fn from(subgroup: Pred) -> Constraint
Converts to this type from the input type.
source§impl From<Stack> for Constraint
 
impl From<Stack> for Constraint
source§fn from(subgroup: Stack) -> Constraint
 
fn from(subgroup: Stack) -> Constraint
Converts to this type from the input type.
source§impl From<Temporary> for Constraint
 
impl From<Temporary> for Constraint
source§fn from(subgroup: Temporary) -> Constraint
 
fn from(subgroup: Temporary) -> Constraint
Converts to this type from the input type.
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 Constraint
 
impl Hash for Constraint
source§impl Ord for Constraint
 
impl Ord for Constraint
source§fn cmp(&self, other: &Constraint) -> Ordering
 
fn cmp(&self, other: &Constraint) -> 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 Constraint
 
impl ParseOp for Constraint
source§fn parse_op(
    &self,
    bytes: &mut impl Iterator<Item = u8>,
) -> Result<<Constraint as ParseOp>::Op, <Constraint as ParseOp>::Error>
 
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<Constraint as ParseOp>::Op, <Constraint 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 = Constraint
 
type Op = Constraint
The operation associated with the opcode.
§type Error = NotEnoughBytesError
 
type Error = NotEnoughBytesError
Any error that might occur while parsing.
source§impl PartialEq for Constraint
 
impl PartialEq for Constraint
source§fn eq(&self, other: &Constraint) -> bool
 
fn eq(&self, other: &Constraint) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for Constraint
 
impl PartialOrd for Constraint
source§fn partial_cmp(&self, other: &Constraint) -> Option<Ordering>
 
fn partial_cmp(&self, other: &Constraint) -> 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 Constraint
 
impl TryFrom<u8> for Constraint
§type Error = InvalidOpcodeError
 
type Error = InvalidOpcodeError
The type returned in the event of a conversion error.
source§fn try_from(u: u8) -> Result<Constraint, <Constraint as TryFrom<u8>>::Error>
 
fn try_from(u: u8) -> Result<Constraint, <Constraint as TryFrom<u8>>::Error>
Performs the conversion.
impl Copy for Constraint
impl Eq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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)