pub struct PdgLoop {
pub header: usize,
pub line: usize,
pub per_item_of: String,
pub nodes: Vec<usize>,
pub exits: Vec<Guard>,
pub inside: Option<usize>,
}Expand description
A loop of a body: how often it runs, what runs inside it, and where it is left.
Fields§
§header: usize§line: usize§per_item_of: StringFor a loop over an iterator, the iterator’s type: the body runs once per item it yields.
Empty for a loop or while, which runs until a branch leaves it.
nodes: Vec<usize>The calls and awaits inside the loop, by block.
exits: Vec<Guard>The branches that leave the loop, with the label of the edge that leaves.
inside: Option<usize>The header of the innermost loop around this one, if any.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PdgLoop
impl<'de> Deserialize<'de> for PdgLoop
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for PdgLoop
impl Freeze for PdgLoop
impl Move for PdgLoop
impl RefUnwindSafe for PdgLoop
impl Send for PdgLoop
impl Sync for PdgLoop
impl Unpin for PdgLoop
impl UnsafeUnpin for PdgLoop
impl UnwindSafe for PdgLoop
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