Struct spirt::cfg::Structurizer
source · pub struct Structurizer<'a> { /* private fields */ }
Expand description
Control-flow “structurizer”, which attempts to convert as much of the CFG as possible into structural control-flow (regions).
See [StructurizeRegionState
]’s docs for more details on the algorithm.
Implementations§
source§impl<'a> Structurizer<'a>
impl<'a> Structurizer<'a>
pub fn new(cx: &'a Context, func_def_body: &'a mut FuncDefBody) -> Self
pub fn structurize_func(self)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Structurizer<'a>
impl<'a> !Send for Structurizer<'a>
impl<'a> !Sync for Structurizer<'a>
impl<'a> Unpin for Structurizer<'a>
impl<'a> !UnwindSafe for Structurizer<'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