Trait TraversableDataset

Source
pub trait TraversableDataset: Dataset {
    type Quads<'a>: Iterator<Item = Quad<&'a Self::Resource>>
       where Self: 'a;

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

    // Provided method
    fn quads_count(&self) -> usize { ... }
}
Expand description

Dataset that can be traversed using a provided quad iterator.

Required Associated Types§

Source

type Quads<'a>: Iterator<Item = Quad<&'a Self::Resource>> where Self: 'a

Quads iterator.

Required Methods§

Source

fn quads(&self) -> Self::Quads<'_>

Returns an iterator over the quads of the dataset.

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<G: TraversableGraph> TraversableDataset for G

Source§

type Quads<'a> = TripleToQuadIterator<<G as TraversableGraph>::Triples<'a>, &'a <G as Graph>::Resource> where Self: 'a

Source§

impl<R> TraversableDataset for BTreeDataset<R>

Source§

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

Source§

impl<R> TraversableDataset for IndexedBTreeDataset<R>

Source§

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