pub enum ParentMemory {
Load,
LoadRange,
}
Expand description
Operations for reading parent memory from within a compute context.
Variants§
Load
0x7A
: LODP
Load the value at the given index from parent memory onto the stack.
§Stack Input
[index]
§Stack Output
[value]
§Panics
- Not in compute context.
- Index is out of bounds.
LoadRange
Trait Implementations§
Source§impl Clone for ParentMemory
impl Clone for ParentMemory
Source§fn clone(&self) -> ParentMemory
fn clone(&self) -> ParentMemory
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 ParentMemory
impl Debug for ParentMemory
Source§impl From<ParentMemory> for Op
impl From<ParentMemory> for Op
Source§fn from(subgroup: ParentMemory) -> Op
fn from(subgroup: ParentMemory) -> Op
Converts to this type from the input type.
Source§impl Hash for ParentMemory
impl Hash for ParentMemory
Source§impl Ord for ParentMemory
impl Ord for ParentMemory
Source§fn cmp(&self, other: &ParentMemory) -> Ordering
fn cmp(&self, other: &ParentMemory) -> 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 PartialEq for ParentMemory
impl PartialEq for ParentMemory
Source§impl PartialOrd for ParentMemory
impl PartialOrd for ParentMemory
Source§impl ToBytes for ParentMemory
impl ToBytes for ParentMemory
Source§type Bytes = ParentMemory
type Bytes = ParentMemory
The iterator yielding bytes.
Source§impl ToOpcode for ParentMemory
impl ToOpcode for ParentMemory
Source§type Opcode = ParentMemory
type Opcode = ParentMemory
The associated
Opcode
type.Source§impl TryFromBytes for ParentMemory
impl TryFromBytes for ParentMemory
Source§type Error = FromBytesError
type Error = FromBytesError
Represents any error that might occur while parsing an op from bytes.
Source§fn try_from_bytes(
bytes: &mut impl Iterator<Item = u8>,
) -> Option<Result<ParentMemory, <ParentMemory as TryFromBytes>::Error>>
fn try_from_bytes( bytes: &mut impl Iterator<Item = u8>, ) -> Option<Result<ParentMemory, <ParentMemory as TryFromBytes>::Error>>
Parse a single operation from the given iterator yielding bytes. Read more
impl Copy for ParentMemory
impl Eq for ParentMemory
impl StructuralPartialEq for ParentMemory
Auto Trait Implementations§
impl Freeze for ParentMemory
impl RefUnwindSafe for ParentMemory
impl Send for ParentMemory
impl Sync for ParentMemory
impl Unpin for ParentMemory
impl UnwindSafe for ParentMemory
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