Enum essential_constraint_vm::asm::opcode::Access
source · #[repr(u8)]pub enum Access {
Show 19 variants
DecisionVar = 48,
DecisionVarAt = 49,
DecisionVarRange = 50,
DecisionVarLen = 51,
State = 52,
StateRange = 53,
StateLen = 54,
StateLenRange = 55,
MutKeysLen = 56,
MutKeysContains = 57,
ThisAddress = 58,
ThisContractAddress = 59,
ThisPathway = 60,
RepeatCounter = 61,
Transient = 62,
TransientLen = 63,
PredicateAt = 64,
ThisTransientLen = 65,
ThisTransientContains = 66,
}
Expand description
Operations for accessing input data.
Variants§
DecisionVar = 48
0x30
Opcode associated with the Access::DecisionVar operation.
DecisionVarAt = 49
0x31
Opcode associated with the Access::DecisionVarAt operation.
DecisionVarRange = 50
0x32
Opcode associated with the Access::DecisionVarRange operation.
DecisionVarLen = 51
0x33
Opcode associated with the Access::DecisionVarLen operation.
State = 52
0x34
Opcode associated with the Access::State operation.
StateRange = 53
0x35
Opcode associated with the Access::StateRange operation.
StateLen = 54
0x36
Opcode associated with the Access::StateLen operation.
StateLenRange = 55
0x37
Opcode associated with the Access::StateLenRange operation.
MutKeysLen = 56
0x38
Opcode associated with the Access::MutKeysLen operation.
MutKeysContains = 57
0x39
Opcode associated with the Access::MutKeysContains operation.
ThisAddress = 58
0x3A
Opcode associated with the Access::ThisAddress operation.
ThisContractAddress = 59
0x3B
Opcode associated with the Access::ThisContractAddress operation.
ThisPathway = 60
0x3C
Opcode associated with the Access::ThisPathway operation.
RepeatCounter = 61
0x3D
Opcode associated with the Access::RepeatCounter operation.
Transient = 62
0x3E
Opcode associated with the Access::Transient operation.
TransientLen = 63
0x3F
Opcode associated with the Access::TransientLen operation.
PredicateAt = 64
0x40
Opcode associated with the Access::PredicateAt operation.
ThisTransientLen = 65
0x41
Opcode associated with the Access::ThisTransientLen operation.
ThisTransientContains = 66
0x42
Opcode associated with the Access::ThisTransientContains operation.
Trait Implementations§
source§impl From<Access> for Constraint
impl From<Access> for Constraint
source§fn from(subgroup: Access) -> Constraint
fn from(subgroup: Access) -> Constraint
source§impl Ord for Access
impl Ord for Access
source§impl ParseOp for Access
impl ParseOp for Access
source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<Access as ParseOp>::Op, <Access as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<Access as ParseOp>::Op, <Access 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 Error = NotEnoughBytesError
type Error = NotEnoughBytesError
source§impl PartialEq for Access
impl PartialEq for Access
source§impl PartialOrd for Access
impl PartialOrd for Access
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Access
impl Eq for Access
impl StructuralPartialEq for Access
Auto Trait Implementations§
impl Freeze for Access
impl RefUnwindSafe for Access
impl Send for Access
impl Sync for Access
impl Unpin for Access
impl UnwindSafe for Access
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
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)
clone_to_uninit
)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)
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>
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>
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