#[repr(u8)]pub enum StateMemory {
AllocSlots = 128,
Load = 129,
Store = 130,
Truncate = 131,
Length = 132,
ValueLen = 133,
}
Expand description
Operations for controlling mutable state slots.
Variants§
AllocSlots = 128
0x80
Opcode associated with the StateMemory::AllocSlots operation.
Load = 129
0x81
Opcode associated with the StateMemory::Load operation.
Store = 130
0x82
Opcode associated with the StateMemory::Store operation.
Truncate = 131
0x83
Opcode associated with the StateMemory::Truncate operation.
Length = 132
0x84
Opcode associated with the StateMemory::Length operation.
ValueLen = 133
0x85
Opcode associated with the StateMemory::ValueLen operation.
Trait Implementations§
Source§impl Clone for StateMemory
impl Clone for StateMemory
Source§fn clone(&self) -> StateMemory
fn clone(&self) -> StateMemory
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StateMemory
impl Debug for StateMemory
Source§impl From<StateMemory> for StateRead
impl From<StateMemory> for StateRead
Source§fn from(subgroup: StateMemory) -> Self
fn from(subgroup: StateMemory) -> Self
Converts to this type from the input type.
Source§impl From<StateMemory> for u8
impl From<StateMemory> for u8
Source§fn from(opcode: StateMemory) -> Self
fn from(opcode: StateMemory) -> Self
Converts to this type from the input type.
Source§impl Hash for StateMemory
impl Hash for StateMemory
Source§impl Ord for StateMemory
impl Ord for StateMemory
Source§fn cmp(&self, other: &StateMemory) -> Ordering
fn cmp(&self, other: &StateMemory) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl ParseOp for StateMemory
impl ParseOp for StateMemory
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.
Source§type Op = StateMemory
type Op = StateMemory
The operation associated with the opcode.
Source§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Any error that might occur while parsing.
Source§impl PartialEq for StateMemory
impl PartialEq for StateMemory
Source§impl PartialOrd for StateMemory
impl PartialOrd for StateMemory
Source§impl TryFrom<u8> for StateMemory
impl TryFrom<u8> for StateMemory
impl Copy for StateMemory
impl Eq for StateMemory
impl StructuralPartialEq for StateMemory
Auto Trait Implementations§
impl Freeze for StateMemory
impl RefUnwindSafe for StateMemory
impl Send for StateMemory
impl Sync for StateMemory
impl Unpin for StateMemory
impl UnwindSafe for StateMemory
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