pub struct Block {
pub label: Option<Instruction>,
pub instructions: Vec<Instruction>,
}
Expand description
Data representation of a SPIR-V block.
Fields§
§label: Option<Instruction>
The label starting this block.
instructions: Vec<Instruction>
Instructions in this block.
Implementations§
Trait Implementations§
source§impl Assemble for Block
impl Assemble for Block
source§fn assemble_into(&self, result: &mut Vec<u32>)
fn assemble_into(&self, result: &mut Vec<u32>)
Assembles the current object into the
result
vector, reducing the need for lots of allocationssource§impl Disassemble for Block
impl Disassemble for Block
source§fn disassemble(&self) -> String
fn disassemble(&self) -> String
Disassembles the current object and returns the assembly code.
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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