Struct rspirv::grammar::Instruction[][src]

pub struct Instruction<'a> {
    pub opname: &'a str,
    pub opcode: Op,
    pub capabilities: &'a [Capability],
    pub extensions: &'a [&'a str],
    pub operands: &'a [LogicalOperand],
}

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

impl<'a> Debug for Instruction<'a>[src]

impl<'a> Eq for Instruction<'a>[src]

impl<'a> Hash for Instruction<'a>[src]

impl<'a> PartialEq<Instruction<'a>> for Instruction<'a>[src]

impl<'a> StructuralEq for Instruction<'a>[src]

impl<'a> StructuralPartialEq for Instruction<'a>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.