#[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§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.
Source§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Source§impl PartialOrd for Access
impl PartialOrd for Access
impl 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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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