Trait TraversableGraph

Source
pub trait TraversableGraph: Graph {
    type Triples<'a>: Iterator<Item = Triple<&'a Self::Resource>>
       where Self: 'a;

    // Required method
    fn triples(&self) -> Self::Triples<'_>;

    // Provided method
    fn triples_count(&self) -> usize { ... }
}

Required Associated Types§

Source

type Triples<'a>: Iterator<Item = Triple<&'a Self::Resource>> where Self: 'a

Required Methods§

Source

fn triples(&self) -> Self::Triples<'_>

Provided Methods§

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<R> TraversableGraph for BTreeGraph<R>

Source§

type Triples<'a> = Triples<'a, R> where R: 'a

Source§

impl<R> TraversableGraph for IndexedBTreeGraph<R>

Source§

type Triples<'a> = Triples<'a, R> where R: 'a