Struct rspirv::grammar::OpenCLStd100InstructionTable
source · pub struct OpenCLStd100InstructionTable;
Expand description
The table for all OpenCLstd100
extended instructions.
This table is staic data stored in the library.
Implementations§
source§impl OpenCLStd100InstructionTable
impl OpenCLStd100InstructionTable
sourcepub fn lookup_opcode(
opcode: u32
) -> Option<&'static ExtendedInstruction<'static>>
pub fn lookup_opcode( opcode: u32 ) -> Option<&'static ExtendedInstruction<'static>>
Looks up the given opcode
in the instruction table and returns
a reference to the instruction grammar entry if found.
sourcepub fn get(opcode: CLOp) -> &'static ExtendedInstruction<'static>
pub fn get(opcode: CLOp) -> &'static ExtendedInstruction<'static>
Returns a reference to the instruction grammar entry with the given
opcode
.
pub fn iter() -> impl Iterator<Item = &'static ExtendedInstruction<'static>>
Auto Trait Implementations§
impl RefUnwindSafe for OpenCLStd100InstructionTable
impl Send for OpenCLStd100InstructionTable
impl Sync for OpenCLStd100InstructionTable
impl Unpin for OpenCLStd100InstructionTable
impl UnwindSafe for OpenCLStd100InstructionTable
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