[−][src]Struct rspirv::dr::Instruction
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]
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]
pub fn new(
opcode: Op,
result_type: Option<Word>,
result_id: Option<Word>,
operands: Vec<Operand>
) -> Self
[src]
opcode: Op,
result_type: Option<Word>,
result_id: Option<Word>,
operands: Vec<Operand>
) -> Self
Creates a new Instruction
instance.
Trait Implementations
impl Assemble for Instruction
[src]
impl Clone for Instruction
[src]
fn clone(&self) -> Instruction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Instruction
[src]
impl Disassemble for Instruction
[src]
fn disassemble(&self) -> String
[src]
Auto Trait Implementations
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,