#[repr(u8)]pub enum ParentMemory {
Load = 122,
LoadRange = 123,
}
Expand description
Operations for reading parent memory from within a compute context.
Variants§
Load = 122
0x7A
Opcode associated with the ParentMemory::Load operation.
LoadRange = 123
0x7B
Opcode associated with the ParentMemory::LoadRange operation.
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 From<ParentMemory> for u8
impl From<ParentMemory> for u8
Source§fn from(opcode: ParentMemory) -> Self
fn from(opcode: 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 ParseOp for ParentMemory
impl ParseOp for ParentMemory
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 = ParentMemory
type Op = ParentMemory
The operation associated with the opcode.
Source§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Any error that might occur while parsing.
Source§impl PartialEq for ParentMemory
impl PartialEq for ParentMemory
Source§impl PartialOrd for ParentMemory
impl PartialOrd for ParentMemory
Source§impl TryFrom<u8> for ParentMemory
impl TryFrom<u8> 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