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 Freeze for OpenCLStd100InstructionTable
impl RefUnwindSafe for OpenCLStd100InstructionTable
impl Send for OpenCLStd100InstructionTable
impl Sync for OpenCLStd100InstructionTable
impl Unpin for OpenCLStd100InstructionTable
impl UnsafeUnpin 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