Struct petgraph::algo::dominators::Dominators [−][src]
Expand description
The dominance relation for some graph and root.
Implementations
impl<N> Dominators<N> where
N: Copy + Eq + Hash,
[src]
impl<N> Dominators<N> where
N: Copy + Eq + Hash,
[src]pub fn immediate_dominator(&self, node: N) -> Option<N>
[src]
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]
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]
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: Clone> Clone for Dominators<N> where
N: Copy + Eq + Hash,
[src]fn clone(&self) -> Dominators<N>
[src]
fn clone(&self) -> Dominators<N>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<N> RefUnwindSafe for Dominators<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Dominators<N> where
N: Send,
N: Send,
impl<N> Sync for Dominators<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Dominators<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Dominators<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more