pub struct CfgBuilder<'a> { /* private fields */ }Expand description
Builder that converts AIR to CFG.
Implementations§
Source§impl<'a> CfgBuilder<'a>
impl<'a> CfgBuilder<'a>
Sourcepub fn build(
func: &'a AnalyzedFunction,
type_pool: &'a TypeInternPool,
) -> CfgOutput
pub fn build( func: &'a AnalyzedFunction, type_pool: &'a TypeInternPool, ) -> CfgOutput
Build a CFG from AIR, returning the CFG and any warnings.
The type_pool provides struct/enum/array definitions needed for queries like
type_needs_drop.
Auto Trait Implementations§
impl<'a> Freeze for CfgBuilder<'a>
impl<'a> RefUnwindSafe for CfgBuilder<'a>
impl<'a> Send for CfgBuilder<'a>
impl<'a> Sync for CfgBuilder<'a>
impl<'a> Unpin for CfgBuilder<'a>
impl<'a> UnwindSafe for CfgBuilder<'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