Skip to main content

Rdf12OccurrenceCursor

Struct Rdf12OccurrenceCursor 

Source
pub struct Rdf12OccurrenceCursor<'a, A: EntailmentTerms, C: TripleCursor> { /* private fields */ }
Expand description

Stream actual RDF term/predicate appearances with bounded iterative traversal.

Reuses the asynchronous structural accessor used by simple entailment. A backend cache miss must load authoritative structure or fail; None means a supported atomic term, never an evicted or unsupported triple term. Literal datatype/language/direction metadata are not traversed as RDF terms.

Supply an immutable root cursor for one selected scope and role. Source assertions/derived facts and target context are separately scheduled by the controller. This cursor performs no entailment, datatype typing, property typing, constructor execution or graph writes. After any error discard the traversal and all semantic output based on its incomplete appearances.

Implementations§

Source§

impl<'a, A, C> Rdf12OccurrenceCursor<'a, A, C>
where A: EntailmentTerms, C: TripleCursor<Term = A::Term, Error = A::Error>,

Source

pub fn new( roots: C, terms: &'a A, role: LiteralRole, limits: OccurrenceLimits, ) -> Self

Bind one immutable selected root cursor and exact shared term dictionary. Keep snapshot/source-graph provenance alongside returned root/path records.

Source

pub const fn role(&self) -> LiteralRole

Explicit source/target role selected before any traversal I/O.

Source

pub async fn next( &mut self, ) -> Result<Option<TermOccurrence<A::Term>>, OccurrenceError<A::Error>>

Emit one actual appearance, revisiting repeated keys at distinct paths.

§Errors

Backend, cancellation and explicit traversal budgets abort the attempt. Nested cycles cannot exhaust the call stack: depth/work caps fail first.

Auto Trait Implementations§

§

impl<'a, A, C> Forget for Rdf12OccurrenceCursor<'a, A, C>

§

impl<'a, A, C> Freeze for Rdf12OccurrenceCursor<'a, A, C>

§

impl<'a, A, C> Move for Rdf12OccurrenceCursor<'a, A, C>

§

impl<'a, A, C> RefUnwindSafe for Rdf12OccurrenceCursor<'a, A, C>

§

impl<'a, A, C> Send for Rdf12OccurrenceCursor<'a, A, C>
where &'a A: Send, NonZero<u32>: Send, NonZero<u64>: Send, <A as EntailmentTerms>::Term: Send, RawVecInner: Send,

§

impl<'a, A, C> Sync for Rdf12OccurrenceCursor<'a, A, C>
where C: Sync, NonZero<u32>: Sync, NonZero<u64>: Sync, <A as EntailmentTerms>::Term: Sync, RawVecInner: Sync,

§

impl<'a, A, C> Unpin for Rdf12OccurrenceCursor<'a, A, C>

§

impl<'a, A, C> UnsafeUnpin for Rdf12OccurrenceCursor<'a, A, C>
where C: UnsafeUnpin, &'a A: UnsafeUnpin, NonZeroU32Inner: UnsafeUnpin, NonZeroU64Inner: UnsafeUnpin, <A as EntailmentTerms>::Term: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<Frame<<A as EntailmentTerms>::Term>>: UnsafeUnpin,

§

impl<'a, A, C> UnwindSafe for Rdf12OccurrenceCursor<'a, A, C>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V