Struct rspirv::mr::BasicBlock [−][src]
pub struct BasicBlock { pub label: Option<Instruction>, pub instructions: Vec<Instruction>, }
Data representation of a SPIR-V basic block.
Fields
label: Option<Instruction>
The label starting this basic block.
instructions: Vec<Instruction>
Instructions in this basic block.
Methods
impl BasicBlock
[src]
impl BasicBlock
pub fn new() -> BasicBlock
[src]
pub fn new() -> BasicBlock
Creates a new empty BasicBlock
instance.
Trait Implementations
impl Assemble for BasicBlock
[src]
impl Assemble for BasicBlock
impl Disassemble for BasicBlock
[src]
impl Disassemble for BasicBlock
fn disassemble(&self) -> String
[src]
fn disassemble(&self) -> String
Disassembles the current object and returns the assembly code.
impl Debug for BasicBlock
[src]
impl Debug for BasicBlock
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for BasicBlock
[src]
impl Default for BasicBlock
fn default() -> BasicBlock
[src]
fn default() -> BasicBlock
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Sync for BasicBlock