pub struct ControlDependencies<Node: Idx>(/* private fields */);Expand description
Represents the control dependencies between all pairs of nodes of a graph.
Implementations§
Source§impl<Node: Idx + Ord> ControlDependencies<Node>
 
impl<Node: Idx + Ord> ControlDependencies<Node>
Sourcepub fn build_many<G: ControlFlowGraph<Node = Node>>(
    graph: &G,
    exits: impl IntoIterator<Item = Node>,
) -> Self
 
pub fn build_many<G: ControlFlowGraph<Node = Node>>( graph: &G, exits: impl IntoIterator<Item = Node>, ) -> Self
Compute the union of control dependencies from multiple exits.
Sourcepub fn dependent_on(&self, node: Node) -> Option<&BitSet<Node>>
 
pub fn dependent_on(&self, node: Node) -> Option<&BitSet<Node>>
Returns the set of all node that are control-dependent on the given node.
Trait Implementations§
Auto Trait Implementations§
impl<Node> Freeze for ControlDependencies<Node>
impl<Node> RefUnwindSafe for ControlDependencies<Node>where
    Node: RefUnwindSafe,
impl<Node> Send for ControlDependencies<Node>where
    Node: Send,
impl<Node> Sync for ControlDependencies<Node>where
    Node: Sync,
impl<Node> Unpin for ControlDependencies<Node>where
    Node: Unpin,
impl<Node> UnwindSafe for ControlDependencies<Node>where
    Node: UnwindSafe,
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