Skip to main content

TripleSource

Trait TripleSource 

Source
pub trait TripleSource: Send + Sync {
    type Term: Clone + Eq + Send + Sync;
    type Error: Error + Send + Sync + 'static;
    type Cursor: TripleCursor<Term = Self::Term, Error = Self::Error>;

    // Required method
    fn scan(
        &self,
        pattern: [Option<Self::Term>; 3],
    ) -> impl Future<Output = Result<Self::Cursor, Self::Error>> + Send;
}
Expand description

One immutable round view of selected assertions plus staged consequences.

Scans must be bounded and match every supplied term exactly. The view and its cursors remain valid while the caller inserts into the separate store. No ordering is required; set closure is independent of scan order. The first retained proof can differ between orders and is not a canonical explanation.

Required Associated Types§

Source

type Term: Clone + Eq + Send + Sync

Exact term type, without lexical/value normalization by the executor.

Source

type Error: Error + Send + Sync + 'static

Backend read error.

Source

type Cursor: TripleCursor<Term = Self::Term, Error = Self::Error>

Owned cursor, independent of subsequent store writes.

Required Methods§

Source

fn scan( &self, pattern: [Option<Self::Term>; 3], ) -> impl Future<Output = Result<Self::Cursor, Self::Error>> + Send

Open a scan/probe; None is a wildcard in subject/predicate/object order.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§