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