pub struct RegularPathConstraint { /* private fields */ }Expand description
Constrains two variables to be connected by a regular path expression.
Created by the path! macro. The path expression
supports concatenation, alternation (|), transitive closure (+),
and reflexive-transitive closure (*). Single-attribute hops use
direct index scans; multi-step paths use the WCO join engine for
concatenation and BFS for closures.
When the start variable is bound, propose enumerates all reachable endpoints. When the end is bound, confirm checks reachability.
Implementations§
Trait Implementations§
Source§impl<'a> Constraint<'a> for RegularPathConstraint
impl<'a> Constraint<'a> for RegularPathConstraint
Source§fn variables(&self) -> VariableSet
fn variables(&self) -> VariableSet
Returns the set of variables this constraint touches. Read more
Source§fn satisfied(&self, _binding: &Binding) -> bool
fn satisfied(&self, _binding: &Binding) -> bool
Returns whether this constraint is consistent with the current
binding. Read moreSource§fn influence(&self, variable: VariableId) -> VariableSet
fn influence(&self, variable: VariableId) -> VariableSet
Returns the set of variables whose estimates may change when
variable is bound or unbound. Read moreAuto Trait Implementations§
impl Freeze for RegularPathConstraint
impl RefUnwindSafe for RegularPathConstraint
impl Send for RegularPathConstraint
impl Sync for RegularPathConstraint
impl Unpin for RegularPathConstraint
impl UnsafeUnpin for RegularPathConstraint
impl UnwindSafe for RegularPathConstraint
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
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 more