#[repr(u8)]pub enum Memory {
Alloc = 112,
Free = 113,
Load = 114,
Store = 115,
LoadRange = 116,
StoreRange = 117,
}
Expand description
Operations for memory.
Variants§
Alloc = 112
0x70
Opcode associated with the Memory::Alloc operation.
Free = 113
0x71
Opcode associated with the Memory::Free operation.
Load = 114
0x72
Opcode associated with the Memory::Load operation.
Store = 115
0x73
Opcode associated with the Memory::Store operation.
LoadRange = 116
0x74
Opcode associated with the Memory::LoadRange operation.
StoreRange = 117
0x75
Opcode associated with the Memory::StoreRange operation.
Trait Implementations§
Source§impl Ord for Memory
impl Ord for Memory
Source§impl ParseOp for Memory
impl ParseOp for Memory
Source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<Memory as ParseOp>::Op, <Memory as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<Memory as ParseOp>::Op, <Memory 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 Memory
impl PartialOrd for Memory
impl Copy for Memory
impl Eq for Memory
impl StructuralPartialEq for Memory
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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