pub struct PatchValueConstraint<'a, T: ValueSchema> { /* private fields */ }Expand description
Constrains a variable to full-width values present in a PATCH.
Proposals enumerate every entry; confirmations check prefix membership.
Implementations§
Source§impl<'a, T: ValueSchema> PatchValueConstraint<'a, T>
impl<'a, T: ValueSchema> PatchValueConstraint<'a, T>
Trait Implementations§
Source§impl<'a, S: ValueSchema> Constraint<'a> for PatchValueConstraint<'a, S>
impl<'a, S: ValueSchema> Constraint<'a> for PatchValueConstraint<'a, S>
Source§fn variables(&self) -> VariableSet
fn variables(&self) -> VariableSet
Returns the set of variables this constraint touches. Read more
Source§fn propose(
&self,
variable: VariableId,
_binding: &Binding,
proposals: &mut Vec<RawValue>,
)
fn propose( &self, variable: VariableId, _binding: &Binding, proposals: &mut Vec<RawValue>, )
Source§fn confirm(
&self,
variable: VariableId,
_binding: &Binding,
proposals: &mut Vec<RawValue>,
)
fn confirm( &self, variable: VariableId, _binding: &Binding, proposals: &mut Vec<RawValue>, )
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<'a, T> Freeze for PatchValueConstraint<'a, T>
impl<'a, T> RefUnwindSafe for PatchValueConstraint<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for PatchValueConstraint<'a, T>where
T: Send,
impl<'a, T> Sync for PatchValueConstraint<'a, T>where
T: Sync,
impl<'a, T> Unpin for PatchValueConstraint<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for PatchValueConstraint<'a, T>
impl<'a, T> UnwindSafe for PatchValueConstraint<'a, T>where
T: UnwindSafe,
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