#[repr(u8)]pub enum Access {
ThisAddress = 48,
ThisContractAddress = 49,
MutKeys = 52,
RepeatCounter = 54,
DecisionVar = 55,
DecisionVarLen = 56,
State = 57,
StateLen = 58,
NumSlots = 59,
PredicateExists = 60,
}
Expand description
Operations for accessing input data.
Variants§
ThisAddress = 48
0x30
Opcode associated with the Access::ThisAddress operation.
ThisContractAddress = 49
0x31
Opcode associated with the Access::ThisContractAddress operation.
MutKeys = 52
0x34
Opcode associated with the Access::MutKeys operation.
RepeatCounter = 54
0x36
Opcode associated with the Access::RepeatCounter operation.
DecisionVar = 55
0x37
Opcode associated with the Access::DecisionVar operation.
DecisionVarLen = 56
0x38
Opcode associated with the Access::DecisionVarLen operation.
State = 57
0x39
Opcode associated with the Access::State operation.
StateLen = 58
0x3A
Opcode associated with the Access::StateLen operation.
NumSlots = 59
0x3B
Opcode associated with the Access::NumSlots operation.
PredicateExists = 60
0x3C
Opcode associated with the Access::PredicateExists operation.
Trait Implementations§
Source§impl From<Access> for Constraint
impl From<Access> for 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<Self::Op, Self::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<Self::Op, Self::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.