pub struct DomTreeNode {
pub var: LcnfVarId,
pub children: Vec<LcnfVarId>,
pub depth: u32,
}Expand description
A node in the dominator tree of the LCNF expression structure.
In ANF/LCNF, the dominator tree mirrors the nesting of let expressions:
the binding of x dominates everything in the body of the let.
Fields§
§var: LcnfVarIdThe variable introduced at this node.
children: Vec<LcnfVarId>Children in the dominator tree (variables dominated by this node).
depth: u32Depth in the dominator tree (root = 0).
Trait Implementations§
Source§impl Clone for DomTreeNode
impl Clone for DomTreeNode
Source§fn clone(&self) -> DomTreeNode
fn clone(&self) -> DomTreeNode
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 DomTreeNode
impl RefUnwindSafe for DomTreeNode
impl Send for DomTreeNode
impl Sync for DomTreeNode
impl Unpin for DomTreeNode
impl UnsafeUnpin for DomTreeNode
impl UnwindSafe for DomTreeNode
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