pub struct BasicBlock {
pub stmts: Vec<Stmt>,
pub term: Terminator,
}Expand description
A straight-line run of statements ending in a Terminator.
Fields§
§stmts: Vec<Stmt>Statements with no control flow of their own: ir::Stmt::Expr,
ir::Stmt::Asm, ir::Stmt::Nop and ir::Stmt::Vla, whose three
bindings are hoisted like every other local and whose allocation stays
here.
term: TerminatorHow the block ends.
Trait Implementations§
Source§impl Clone for BasicBlock
impl Clone 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