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) -> Self
fn from(subgroup: ParentMemory) -> Self
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§impl ToOpcode for ParentMemory
impl ToOpcode for ParentMemory
Source§impl TryFromBytes for ParentMemory
impl TryFromBytes for ParentMemory
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