Struct hir::ir::BasicBlock
[−]
[src]
pub struct BasicBlock { pub label: Option<NodeId>, pub instructions: Vec<NodeId>, pub next: Option<NodeId>, // some fields omitted }
Fields
label: Option<NodeId>
A pointer to the label which defines this basic block, if there is one.
instructions: Vec<NodeId>
next: Option<NodeId>
Methods
impl BasicBlock
[src]
impl BasicBlock
pub fn new(node_id: NodeId, label_id: NodeId) -> BasicBlock
[src]
pub fn new(node_id: NodeId, label_id: NodeId) -> BasicBlock
pub fn new_anonymous(node_id: NodeId) -> BasicBlock
[src]
pub fn new_anonymous(node_id: NodeId) -> BasicBlock
pub fn push_instruction(&mut self, node_id: NodeId)
[src]
pub fn push_instruction(&mut self, node_id: NodeId)
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Trait Implementations
impl Debug for BasicBlock
[src]
impl Debug for BasicBlock
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &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
impl Clone for BasicBlock
[src]
impl Clone for BasicBlock
fn clone(&self) -> BasicBlock
[src]
fn clone(&self) -> BasicBlock
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for BasicBlock
[src]
impl PartialEq for BasicBlock
fn eq(&self, __arg_0: &BasicBlock) -> bool
[src]
fn eq(&self, __arg_0: &BasicBlock) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BasicBlock) -> bool
[src]
fn ne(&self, __arg_0: &BasicBlock) -> bool
This method tests for !=
.
impl HeapSizeOf for BasicBlock
[src]
impl HeapSizeOf for BasicBlock
fn heap_size_of_children(&self) -> usize
[src]
fn heap_size_of_children(&self) -> usize
Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more
impl IrNode for BasicBlock
[src]
impl IrNode for BasicBlock
Auto Trait Implementations
impl Send for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Sync for BasicBlock