pub struct DominatorTree {
pub dom: Vec<Option<VertexId>>,
pub tree: Graph,
pub leftout: Vec<VertexId>,
}Expand description
A dominator tree of a flowgraph, see Graph::dominator_tree.
Fields§
§dom: Vec<Option<VertexId>>Immediate dominator of each vertex, indexed by vertex id. It is
None for the root itself and for the vertices unreachable from the
root (the latter are also listed in leftout).
tree: GraphThe dominator tree as a directed graph on the same vertex set, with an
edge from idom(w) to w (reversed when mode is
NeighborMode::In); unreachable vertices are isolated.
leftout: Vec<VertexId>Ids of the vertices that are not reachable from the root.
Implementations§
Source§impl DominatorTree
impl DominatorTree
Trait Implementations§
Source§impl Clone for DominatorTree
impl Clone for DominatorTree
Source§fn clone(&self) -> DominatorTree
fn clone(&self) -> DominatorTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DominatorTree
impl Debug for DominatorTree
Source§impl PartialEq for DominatorTree
impl PartialEq for DominatorTree
Source§fn eq(&self, other: &DominatorTree) -> bool
fn eq(&self, other: &DominatorTree) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DominatorTree
Auto Trait Implementations§
impl !Sync for DominatorTree
impl Freeze for DominatorTree
impl RefUnwindSafe for DominatorTree
impl Send for DominatorTree
impl Unpin for DominatorTree
impl UnsafeUnpin for DominatorTree
impl UnwindSafe for DominatorTree
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