[][src]Struct petgraph::algo::dominators::Dominators

pub struct Dominators<N> where
    N: Copy + Eq + Hash
{ /* fields omitted */ }

The dominance relation for some graph and root.

Implementations

impl<N> Dominators<N> where
    N: Copy + Eq + Hash
[src]

pub fn root(&self) -> N[src]

Get the root node used to construct these dominance relations.

pub fn immediate_dominator(&self, node: N) -> Option<N>[src]

Get the immediate dominator of the given node.

Returns None for any node that is not reachable from the root, and for the root itself.

pub fn strict_dominators(&self, node: N) -> Option<DominatorsIter<N>>[src]

Iterate over the given node's strict dominators.

If the given node is not reachable from the root, then None is returned.

pub fn dominators(&self, node: N) -> Option<DominatorsIter<N>>[src]

Iterate over all of the given node's dominators (including the given node itself).

If the given node is not reachable from the root, then None is returned.

Trait Implementations

impl<N: Clone> Clone for Dominators<N> where
    N: Copy + Eq + Hash
[src]

impl<N: Debug> Debug for Dominators<N> where
    N: Copy + Eq + Hash
[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Dominators<N> where
    N: RefUnwindSafe

impl<N> Send for Dominators<N> where
    N: Send

impl<N> Sync for Dominators<N> where
    N: Sync

impl<N> Unpin for Dominators<N> where
    N: Unpin

impl<N> UnwindSafe for Dominators<N> where
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.