pub struct BasicBlock {
pub id: BlockId,
pub phis: Vec<PhiNode>,
pub instructions: Vec<MirInst>,
pub terminator: Terminator,
}Expand description
A basic block in the MIR control flow graph.
Fields§
§id: BlockIdUnique block identifier.
phis: Vec<PhiNode>Phi nodes at the start of this block.
instructions: Vec<MirInst>Instructions in this block.
terminator: TerminatorBlock terminator.
Implementations§
Trait Implementations§
Source§impl Clone for BasicBlock
impl Clone for BasicBlock
Source§fn clone(&self) -> BasicBlock
fn clone(&self) -> BasicBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BasicBlock
impl Debug for BasicBlock
Source§impl PartialEq for BasicBlock
impl PartialEq for BasicBlock
impl StructuralPartialEq for BasicBlock
Auto Trait Implementations§
impl Freeze for BasicBlock
impl RefUnwindSafe for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Unpin for BasicBlock
impl UnsafeUnpin for BasicBlock
impl UnwindSafe for BasicBlock
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