Struct rspirv::grammar::CoreInstructionTable
source · 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 RefUnwindSafe for CoreInstructionTable
impl Send for CoreInstructionTable
impl Sync for CoreInstructionTable
impl Unpin 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