Skip to main content

LiteralOccurrenceCursor

Trait LiteralOccurrenceCursor 

Source
pub trait LiteralOccurrenceCursor: Send {
    type Term: Clone + Eq + Send + Sync;
    type Error: Error + Send + Sync + 'static;
    type Reader: LiteralReader<Error = Self::Error>;

    // Required method
    fn next(
        &mut self,
    ) -> impl Future<Output = LiteralOccurrenceRead<Self::Term, Self::Reader, Self::Error>> + Send;
}
Expand description

Streaming capability over selected immutable literal occurrences and readers.

The adapter supplies every relevant direct/recursive occurrence for one phase. Each reader must describe its occurrence’s exact literal. Preserve selection, blank scope, and root/graph provenance; never hydrate all literals or expose a previous closure as new input. This is separate from RDF assertion scans: an RDF predicate spelling cannot manufacture a semantic metadata premise.

Required Associated Types§

Source

type Term: Clone + Eq + Send + Sync

Exact term identities shared with inference scratch storage.

Source

type Error: Error + Send + Sync + 'static

Cursor/read failure.

Source

type Reader: LiteralReader<Error = Self::Error>

Reader for one immutable literal, independent of scratch writes. It may borrow the immutable accessor for the cursor’s lifetime.

Required Methods§

Source

fn next( &mut self, ) -> impl Future<Output = LiteralOccurrenceRead<Self::Term, Self::Reader, Self::Error>> + Send

Return one occurrence and reader; zero remaining rows must mean successful EOF.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§