#[repr(u8)]pub enum Opcode {
Constraint(Constraint),
StateMemory(StateMemory),
KeyRange = 144,
KeyRangeExtern = 145,
}
Expand description
All operations available to state-read execution.
Variants§
Constraint(Constraint)
All operations available to the constraint checker.
Note that this is a subset of the operations available to state read execution.
StateMemory(StateMemory)
Operations for controlling mutable state slots.
KeyRange = 144
0x90
Opcode associated with the StateRead::KeyRange operation.
KeyRangeExtern = 145
0x91
Opcode associated with the StateRead::KeyRangeExtern operation.
Trait Implementations§
Source§impl From<Constraint> for StateRead
impl From<Constraint> for StateRead
Source§fn from(subgroup: Constraint) -> StateRead
fn from(subgroup: Constraint) -> StateRead
Converts to this type from the input type.
Source§impl From<StateMemory> for StateRead
impl From<StateMemory> for StateRead
Source§fn from(subgroup: StateMemory) -> StateRead
fn from(subgroup: StateMemory) -> StateRead
Converts to this type from the input type.
Source§impl From<TotalControlFlow> for StateRead
impl From<TotalControlFlow> for StateRead
Source§fn from(subgroup: TotalControlFlow) -> StateRead
fn from(subgroup: TotalControlFlow) -> StateRead
Converts to this type from the input type.
Source§impl Ord for StateRead
impl Ord for StateRead
Source§impl ParseOp for StateRead
impl ParseOp for StateRead
Source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<StateRead as ParseOp>::Op, <StateRead as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<StateRead as ParseOp>::Op, <StateRead 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
Any error that might occur while parsing.
Source§impl PartialOrd for StateRead
impl PartialOrd for StateRead
impl Copy for StateRead
impl Eq for StateRead
impl StructuralPartialEq for StateRead
Auto Trait Implementations§
impl Freeze for StateRead
impl RefUnwindSafe for StateRead
impl Send for StateRead
impl Sync for StateRead
impl Unpin for StateRead
impl UnwindSafe for StateRead
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§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>
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 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>
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