Enum Access

Source
#[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 Clone for Access

Source§

fn clone(&self) -> Access

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Access

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<Access> for Constraint

Source§

fn from(subgroup: Access) -> Constraint

Converts to this type from the input type.
Source§

impl Hash for Access

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Access

Source§

fn cmp(&self, other: &Access) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl ParseOp for Access

Source§

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 Op = Access

The operation associated with the opcode.
Source§

type Error = NotEnoughBytesError

Any error that might occur while parsing.
Source§

impl PartialEq for Access

Source§

fn eq(&self, other: &Access) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Access

Source§

fn partial_cmp(&self, other: &Access) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<u8> for Access

Source§

type Error = InvalidOpcodeError

The type returned in the event of a conversion error.
Source§

fn try_from(u: u8) -> Result<Access, <Access as TryFrom<u8>>::Error>

Performs the conversion.
Source§

impl Copy for Access

Source§

impl Eq for Access

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.