Struct rustc_utils::mir::control_dependencies::ControlDependencies
source · 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<&HybridBitSet<Node>>
pub fn dependent_on(&self, node: Node) -> Option<&HybridBitSet<Node>>
Returns the set of all node that are control-dependent on the given node
.
Trait Implementations§
Auto Trait Implementations§
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