[][src]Trait terminus_store::layer::PredicateLookup

pub trait PredicateLookup {
    fn predicate(&self) -> u64;
fn subject_predicate_pairs(
        &self
    ) -> Box<dyn Iterator<Item = Box<dyn SubjectPredicateLookup>>>; fn triples(&self) -> Box<dyn Iterator<Item = IdTriple>> { ... } }

A trait that caches a lookup in a layer by predicate.

Required methods

fn predicate(&self) -> u64

fn subject_predicate_pairs(
    &self
) -> Box<dyn Iterator<Item = Box<dyn SubjectPredicateLookup>>>

Loading content...

Provided methods

fn triples(&self) -> Box<dyn Iterator<Item = IdTriple>>

Returns an iterator over all triples with the object of this lookup.

Loading content...

Implementors

Loading content...