pub struct DebugConstraint<C> {
pub constraint: C,
pub record: Rc<RefCell<Vec<VariableId>>>,
}Expand description
Constraint wrapper that records which variables are proposed during query execution.
Fields§
§constraint: CThe underlying constraint being observed.
record: Rc<RefCell<Vec<VariableId>>>Shared log of variable ids in the order they were proposed.
Implementations§
Source§impl<C> DebugConstraint<C>
impl<C> DebugConstraint<C>
Trait Implementations§
Source§impl<'a, C: Constraint<'a>> Constraint<'a> for DebugConstraint<C>
impl<'a, C: Constraint<'a>> Constraint<'a> for DebugConstraint<C>
Source§fn variables(&self) -> VariableSet
fn variables(&self) -> VariableSet
Returns the set of variables this constraint touches. Read more
Source§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<C> Freeze for DebugConstraint<C>where
C: Freeze,
impl<C> !RefUnwindSafe for DebugConstraint<C>
impl<C> !Send for DebugConstraint<C>
impl<C> !Sync for DebugConstraint<C>
impl<C> Unpin for DebugConstraint<C>where
C: Unpin,
impl<C> UnsafeUnpin for DebugConstraint<C>where
C: UnsafeUnpin,
impl<C> !UnwindSafe for DebugConstraint<C>
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