pub enum DominatorMode {
Out,
In,
}Expand description
Traversal direction for dominator_tree.
Mirrors the IGRAPH_OUT / IGRAPH_IN choice of igraph C’s
igraph_dominator_tree. IGRAPH_ALL is not a valid mode for the
dominator-tree problem and is therefore excluded from this enum.
Variants§
Out
Follow out-edges from root. This is the standard control-flow
dominator tree: an edge u → v in the input means u precedes
v in the flow.
In
Treat in-edges as forward edges (i.e. reverse every edge before
computing). Used to compute the post-dominator tree of a
control-flow graph and to mirror the upstream IGRAPH_IN mode.
Trait Implementations§
Source§impl Clone for DominatorMode
impl Clone for DominatorMode
Source§fn clone(&self) -> DominatorMode
fn clone(&self) -> DominatorMode
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 moreSource§impl Debug for DominatorMode
impl Debug for DominatorMode
Source§impl PartialEq for DominatorMode
impl PartialEq for DominatorMode
impl Copy for DominatorMode
impl Eq for DominatorMode
impl StructuralPartialEq for DominatorMode
Auto Trait Implementations§
impl Freeze for DominatorMode
impl RefUnwindSafe for DominatorMode
impl Send for DominatorMode
impl Sync for DominatorMode
impl Unpin for DominatorMode
impl UnsafeUnpin for DominatorMode
impl UnwindSafe for DominatorMode
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