pub struct MirBlock {
pub params: Vec<MirLocalId>,
pub instrs: Vec<MirInstr>,
pub terminator: MirTerminator,
}Expand description
Basic block in MIR CFG.
params are edge-passed block parameters (phi-like interface).
Fields§
§params: Vec<MirLocalId>Local ids corresponding to incoming parameters.
instrs: Vec<MirInstr>Instructions executed before the block terminator.
terminator: MirTerminatorTerminator controlling the outgoing flow edge(s).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MirBlock
impl RefUnwindSafe for MirBlock
impl Send for MirBlock
impl Sync for MirBlock
impl Unpin for MirBlock
impl UnwindSafe for MirBlock
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