pub struct BlockBuilder<'b, 'a: 'b> { /* private fields */ }Expand description
Builder for creating IR basic blocks
Implementations§
Source§impl<'b, 'a: 'b> BlockBuilder<'b, 'a>
impl<'b, 'a: 'b> BlockBuilder<'b, 'a>
Sourcepub fn add_statement(&mut self, statement: Statement) -> &mut Self
pub fn add_statement(&mut self, statement: Statement) -> &mut Self
Add a statement to the block
Sourcepub fn add_successor(&mut self, successor_id: BlockId) -> &mut Self
pub fn add_successor(&mut self, successor_id: BlockId) -> &mut Self
Add a successor block
Sourcepub fn build(self) -> &'b mut FunctionBuilder<'a>
pub fn build(self) -> &'b mut FunctionBuilder<'a>
Build the block and add it to the function
Auto Trait Implementations§
impl<'b, 'a> Freeze for BlockBuilder<'b, 'a>
impl<'b, 'a> RefUnwindSafe for BlockBuilder<'b, 'a>
impl<'b, 'a> Send for BlockBuilder<'b, 'a>
impl<'b, 'a> Sync for BlockBuilder<'b, 'a>
impl<'b, 'a> Unpin for BlockBuilder<'b, 'a>
impl<'b, 'a> UnsafeUnpin for BlockBuilder<'b, 'a>
impl<'b, 'a> !UnwindSafe for BlockBuilder<'b, 'a>
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