pub struct NaturalLoop {
pub header: BlockId,
pub latch: BlockId,
pub body: HashSet<BlockId>,
pub depth: u32,
}Expand description
A natural loop in the CFG.
Fields§
§header: BlockIdLoop header block (dominates all blocks in the loop).
latch: BlockIdBack edge source block.
body: HashSet<BlockId>All blocks in the loop body (including header).
depth: u32Nesting depth (0 for outermost loops).
Trait Implementations§
Source§impl Clone for NaturalLoop
impl Clone for NaturalLoop
Source§fn clone(&self) -> NaturalLoop
fn clone(&self) -> NaturalLoop
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 NaturalLoop
impl RefUnwindSafe for NaturalLoop
impl Send for NaturalLoop
impl Sync for NaturalLoop
impl Unpin for NaturalLoop
impl UnsafeUnpin for NaturalLoop
impl UnwindSafe for NaturalLoop
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