Struct rspirv::dr::Instruction [−][src]
pub struct Instruction { pub class: &'static Instruction<'static>, pub result_type: Option<Word>, pub result_id: Option<Word>, pub operands: Vec<Operand>, }
Data representation of a SPIR-V instruction.
Fields
class: &'static Instruction<'static>
The class (grammar specification) of this instruction.
result_type: Option<Word>
Result type id.
result_id: Option<Word>
Result id.
operands: Vec<Operand>
Operands.
Implementations
impl Instruction
[src]
impl Instruction
[src]pub fn is_type_identical(&self, other: &Instruction) -> bool
[src]
Compare two instructions by opcode and operands; this is the equality identity for OpType
instructions
impl Instruction
[src]
impl Instruction
[src]Trait Implementations
impl Assemble for Instruction
[src]
impl Assemble for Instruction
[src]impl Clone for Instruction
[src]
impl Clone for Instruction
[src]fn clone(&self) -> Instruction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Disassemble for Instruction
[src]
impl Disassemble for Instruction
[src]fn disassemble(&self) -> String
[src]
impl PartialEq<Instruction> for Instruction
[src]
impl PartialEq<Instruction> for Instruction
[src]fn eq(&self, other: &Instruction) -> bool
[src]
fn ne(&self, other: &Instruction) -> bool
[src]
impl StructuralPartialEq for Instruction
[src]
impl StructuralPartialEq for Instruction
[src]Auto Trait Implementations
impl RefUnwindSafe for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
impl UnwindSafe for Instruction