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>