Trait rustc_data_structures::graph::WithSuccessors
source · pub trait WithSuccessors: DirectedGraphwhere
Self: for<'graph> GraphSuccessors<'graph, Item = Self::Node>,{
// Required method
fn successors(
&self,
node: Self::Node
) -> <Self as GraphSuccessors<'_>>::Iter;
// Provided method
fn depth_first_search(&self, from: Self::Node) -> DepthFirstSearch<'_, Self> ⓘ
where Self: WithNumNodes { ... }
}
Required Methods§
fn successors(&self, node: Self::Node) -> <Self as GraphSuccessors<'_>>::Iter
Provided Methods§
fn depth_first_search(&self, from: Self::Node) -> DepthFirstSearch<'_, Self> ⓘwhere
Self: WithNumNodes,
Object Safety§
This trait is not object safe.