pub struct BasicBlock {
pub id: BlockId,
pub label: Option<String>,
pub instructions: Vec<Instruction>,
pub terminator: Terminator,
}Expand description
Basic block in SSA form
Fields§
§id: BlockId§label: Option<String>§instructions: Vec<Instruction>§terminator: TerminatorImplementations§
Source§impl BasicBlock
impl BasicBlock
pub fn new(id: BlockId) -> Self
pub fn with_label(self, label: String) -> Self
pub fn add_instruction(&mut self, instruction: Instruction)
pub fn set_terminator(&mut self, terminator: Terminator)
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 moreAuto Trait Implementations§
impl Freeze for BasicBlock
impl RefUnwindSafe for BasicBlock
impl Send for BasicBlock
impl Sync for BasicBlock
impl Unpin 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