rustc_data_structures::graph

Trait Predecessors

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

Required Methods§

source

fn predecessors(&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: Predecessors> Predecessors for &'graph G

source§

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

Implementors§

source§

impl<N: Idx + Ord> Predecessors for VecGraph<N, true>