Trait Vertices

Source
pub trait Vertices: GraphBase {
    type VIter<'g>: Iterator<Item = Self::VIndex>
       where Self: 'g;

    // Required method
    fn vertices(&self) -> Self::VIter<'_>;
}

Required Associated Types§

Source

type VIter<'g>: Iterator<Item = Self::VIndex> where Self: 'g

Required Methods§

Source

fn vertices(&self) -> Self::VIter<'_>

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.

Implementors§

Source§

impl<A> Vertices for GridGraph<A>

Source§

type VIter<'g> = GridVertices where A: 'g

Source§

impl<D> Vertices for SparseGraph<D>

Source§

type VIter<'g> = Range<usize> where D: 'g

Source§

impl<Fa> Vertices for UsizeGraph<Fa>

Source§

type VIter<'g> = Range<usize> where Fa: 'g

Source§

impl<V, Fv, Fa, Iv> Vertices for ClosureGraph<V, Fv, Fa>
where V: Eq + Copy, Iv: Iterator<Item = V>, Fv: Fn() -> Iv,

Source§

type VIter<'g> = Iv where V: 'g, Fv: 'g, Fa: 'g