pub struct CoreInstructionTable;Expand description
The table for all SPIR-V core instructions.
This table is staic data stored in the library.
Implementations§
Source§impl CoreInstructionTable
impl CoreInstructionTable
Sourcepub fn lookup_opcode(opcode: u16) -> Option<&'static Instruction<'static>>
pub fn lookup_opcode(opcode: u16) -> Option<&'static Instruction<'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: Op) -> &'static Instruction<'static>
pub fn get(opcode: Op) -> &'static Instruction<'static>
Returns a reference to the instruction grammar entry with the given
opcode.
pub fn iter() -> impl Iterator<Item = &'static Instruction<'static>>
Auto Trait Implementations§
impl Freeze for CoreInstructionTable
impl RefUnwindSafe for CoreInstructionTable
impl Send for CoreInstructionTable
impl Sync for CoreInstructionTable
impl Unpin for CoreInstructionTable
impl UnsafeUnpin for CoreInstructionTable
impl UnwindSafe for CoreInstructionTable
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