rustc_data_structures::graph

Trait DirectedGraph

Source
pub trait DirectedGraph {
    type Node: Idx;

    // Required method
    fn num_nodes(&self) -> usize;
}

Required Associated Types§

Required Methods§

Source

fn num_nodes(&self) -> usize

Implementations on Foreign Types§

Source§

impl<'graph, G: DirectedGraph> DirectedGraph for &'graph G

Implementors§

Source§

impl<N: Idx, S: Idx + Ord, A: Annotation> DirectedGraph for Sccs<N, S, A>

Source§

type Node = S

Source§

impl<N: Idx, const BR: bool> DirectedGraph for VecGraph<N, BR>

Source§

type Node = N