Enum essential_check::state_read_vm::asm::opcode::StateSlots
source · #[repr(u8)]pub enum StateSlots {
AllocSlots = 128,
Load = 129,
Store = 130,
LoadWord = 131,
StoreWord = 132,
Clear = 133,
ClearRange = 134,
Length = 135,
ValueLen = 136,
}
Expand description
Operations for controlling mutable state slots.
Variants§
AllocSlots = 128
0x80
Opcode associated with the StateSlots::AllocSlots operation.
Load = 129
0x81
Opcode associated with the StateSlots::Load operation.
Store = 130
0x82
Opcode associated with the StateSlots::Store operation.
LoadWord = 131
0x83
Opcode associated with the StateSlots::LoadWord operation.
StoreWord = 132
0x84
Opcode associated with the StateSlots::StoreWord operation.
Clear = 133
0x85
Opcode associated with the StateSlots::Clear operation.
ClearRange = 134
0x86
Opcode associated with the StateSlots::ClearRange operation.
Length = 135
0x87
Opcode associated with the StateSlots::Length operation.
ValueLen = 136
0x88
Opcode associated with the StateSlots::ValueLen operation.
Trait Implementations§
source§impl Clone for StateSlots
impl Clone for StateSlots
source§fn clone(&self) -> StateSlots
fn clone(&self) -> StateSlots
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StateSlots
impl Debug for StateSlots
source§impl From<StateSlots> for StateRead
impl From<StateSlots> for StateRead
source§fn from(subgroup: StateSlots) -> StateRead
fn from(subgroup: StateSlots) -> StateRead
source§impl Hash for StateSlots
impl Hash for StateSlots
source§impl Ord for StateSlots
impl Ord for StateSlots
source§fn cmp(&self, other: &StateSlots) -> Ordering
fn cmp(&self, other: &StateSlots) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl ParseOp for StateSlots
impl ParseOp for StateSlots
source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<StateSlots as ParseOp>::Op, <StateSlots as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<StateSlots as ParseOp>::Op, <StateSlots 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 Op = StateSlots
type Op = StateSlots
§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
source§impl PartialEq for StateSlots
impl PartialEq for StateSlots
source§fn eq(&self, other: &StateSlots) -> bool
fn eq(&self, other: &StateSlots) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StateSlots
impl PartialOrd for StateSlots
source§fn partial_cmp(&self, other: &StateSlots) -> Option<Ordering>
fn partial_cmp(&self, other: &StateSlots) -> Option<Ordering>
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 moresource§impl TryFrom<u8> for StateSlots
impl TryFrom<u8> for StateSlots
§type Error = InvalidOpcodeError
type Error = InvalidOpcodeError
source§fn try_from(u: u8) -> Result<StateSlots, <StateSlots as TryFrom<u8>>::Error>
fn try_from(u: u8) -> Result<StateSlots, <StateSlots as TryFrom<u8>>::Error>
impl Copy for StateSlots
impl Eq for StateSlots
impl StructuralPartialEq for StateSlots
Auto Trait Implementations§
impl Freeze for StateSlots
impl RefUnwindSafe for StateSlots
impl Send for StateSlots
impl Sync for StateSlots
impl Unpin for StateSlots
impl UnwindSafe for StateSlots
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§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> 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> 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