pub struct PathConstraint<'a> { /* private fields */ }Expand description
A two-endpoint view of a PathIndex for the ordinary query solver.
Implementations§
Source§impl<'a> PathConstraint<'a>
impl<'a> PathConstraint<'a>
Sourcepub fn new<S: InlineEncoding, E: InlineEncoding>(
index: &'a PathIndex,
start: impl Into<Term<S>>,
end: impl Into<Term<E>>,
) -> Self
pub fn new<S: InlineEncoding, E: InlineEncoding>( index: &'a PathIndex, start: impl Into<Term<S>>, end: impl Into<Term<E>>, ) -> Self
Constrains start and end to an accepted pair in index.
Trait Implementations§
Source§impl<'a> Clone for PathConstraint<'a>
impl<'a> Clone for PathConstraint<'a>
Source§impl<'a> Constraint<'a> for PathConstraint<'a>
impl<'a> Constraint<'a> for PathConstraint<'a>
Source§fn propose(
&self,
variable: VariableId,
frontier: &Frontier<'_>,
proposals: &mut ProposalBuffer,
)
fn propose( &self, variable: VariableId, frontier: &Frontier<'_>, proposals: &mut ProposalBuffer, )
Proposes each row’s own ordinal run. Which endpoint is bound is uniform across the batch; the bound value is not, so the ordinal slice is looked up once per row.
Source§fn confirm(
&self,
variable: VariableId,
frontier: &Frontier<'_>,
candidates: &mut Candidates<'_>,
)
fn confirm( &self, variable: VariableId, frontier: &Frontier<'_>, candidates: &mut Candidates<'_>, )
Confirms each candidate against its own row’s ordinal run — one lookup per run of equal parent tags rather than one per candidate.
Source§fn variables(&self) -> VariableSet
fn variables(&self) -> VariableSet
Returns the set of variables this constraint touches. Read more
impl<'a> Copy for PathConstraint<'a>
Auto Trait Implementations§
impl<'a> Freeze for PathConstraint<'a>
impl<'a> RefUnwindSafe for PathConstraint<'a>
impl<'a> Send for PathConstraint<'a>
impl<'a> Sync for PathConstraint<'a>
impl<'a> Unpin for PathConstraint<'a>
impl<'a> UnsafeUnpin for PathConstraint<'a>
impl<'a> UnwindSafe for PathConstraint<'a>
Blanket Implementations§
impl<T> ArchiveOwner for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
impl<S, T> IntoEncoded<S> for Twhere
S: Encodes<T>,
Source§fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
fn into_encoded(self) -> <T as IntoEncoded<S>>::Output
Run the conversion.