rustc_data_structures::graph

Trait Successors

Source
pub trait Successors: DirectedGraph {
    // Required method
    fn successors(&self, node: Self::Node) -> impl Iterator<Item = Self::Node>;
}

Required Methods§

Source

fn successors(&self, node: Self::Node) -> impl Iterator<Item = Self::Node>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

fn successors(&self, node: Self::Node) -> impl Iterator<Item = Self::Node>

Implementors§

Source§

impl<N: Idx + Ord, const BR: bool> Successors for VecGraph<N, BR>

Source§

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