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§
Sourcetype Term: Clone + Eq + Send + Sync
type Term: Clone + Eq + Send + Sync
Exact term type, without lexical/value normalization by the executor.
Sourcetype Cursor: TripleCursor<Term = Self::Term, Error = Self::Error>
type Cursor: TripleCursor<Term = Self::Term, Error = Self::Error>
Owned cursor, independent of subsequent store writes.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".