Struct rspirv::grammar::Instruction
source · pub struct Instruction<'a> {
pub opname: &'a str,
pub opcode: Op,
pub capabilities: &'a [Capability],
pub extensions: &'a [&'a str],
pub operands: &'a [LogicalOperand],
}
Expand description
Grammar for a SPIR-V instruction.
Fields§
§opname: &'a str
Opname.
opcode: Op
Opcode.
capabilities: &'a [Capability]
Capabilities required for this instruction.
extensions: &'a [&'a str]
Extensions required for this instruction.
operands: &'a [LogicalOperand]
Logical operands for this instruction.
This includes result type id and result id.
Trait Implementations§
source§impl<'a> Debug for Instruction<'a>
impl<'a> Debug for Instruction<'a>
source§impl<'a> Hash for Instruction<'a>
impl<'a> Hash for Instruction<'a>
source§impl<'a> PartialEq<Instruction<'a>> for Instruction<'a>
impl<'a> PartialEq<Instruction<'a>> for Instruction<'a>
source§fn eq(&self, other: &Instruction<'a>) -> bool
fn eq(&self, other: &Instruction<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for Instruction<'a>
impl<'a> StructuralEq for Instruction<'a>
impl<'a> StructuralPartialEq for Instruction<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Instruction<'a>
impl<'a> Send for Instruction<'a>
impl<'a> Sync for Instruction<'a>
impl<'a> Unpin for Instruction<'a>
impl<'a> UnwindSafe for Instruction<'a>
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