#[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.6.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) -> StateRead
fn from(subgroup: StateMemory) -> StateRead
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<<StateMemory as ParseOp>::Op, <StateMemory as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<StateMemory as ParseOp>::Op, <StateMemory 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 = 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
source§type Error = InvalidOpcodeError
type Error = InvalidOpcodeError
The type returned in the event of a conversion error.
source§fn try_from(u: u8) -> Result<StateMemory, <StateMemory as TryFrom<u8>>::Error>
fn try_from(u: u8) -> Result<StateMemory, <StateMemory as TryFrom<u8>>::Error>
Performs the conversion.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
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>
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