pub struct SimpleEntailment { /* private fields */ }Expand description
Source-to-target simple entailment by consistent existential graph matching.
Implementations§
Source§impl SimpleEntailment
impl SimpleEntailment
Sourcepub const fn new(limits: EntailmentLimits) -> Self
pub const fn new(limits: EntailmentLimits) -> Self
Select finite target, binding, recursive-worklist and work budgets.
Sourcepub async fn check<S, Q, A>(
&self,
source: &S,
target: &Q,
terms: &A,
) -> Result<EntailmentReport, EntailmentError<S::Error>>where
S: TripleSource,
Q: TripleSource<Term = S::Term, Error = S::Error>,
A: EntailmentTerms<Term = S::Term, Error = S::Error>,
pub async fn check<S, Q, A>(
&self,
source: &S,
target: &Q,
terms: &A,
) -> Result<EntailmentReport, EntailmentError<S::Error>>where
S: TripleSource,
Q: TripleSource<Term = S::Term, Error = S::Error>,
A: EntailmentTerms<Term = S::Term, Error = S::Error>,
Decide whether the source graph contains one instance of the target.
Source/target snapshots and term identity must be immutable for the whole call. Source triples are streamed through indexed scans. Only explicitly capped target patterns, bindings, owned cursors and term pairs are retained. Triple terms are decomposed for substitution and never added as assertions.
§Errors
Any read failure, cancellation or exhausted cap aborts the decision. Resource exhaustion must never be interpreted as non-entailment.
Auto Trait Implementations§
impl Forget for SimpleEntailment
impl Freeze for SimpleEntailment
impl Move for SimpleEntailment
impl RefUnwindSafe for SimpleEntailment
impl Send for SimpleEntailment
impl Sync for SimpleEntailment
impl Unpin for SimpleEntailment
impl UnsafeUnpin for SimpleEntailmentwhere
NonZeroU32Inner: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
impl UnwindSafe for SimpleEntailment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more