pub struct PatchIdConstraint<S>where
S: ValueSchema,{ /* private fields */ }Expand description
Constrains a variable to ID-width values present in a PATCH.
Like PatchValueConstraint but for 16-byte identifiers. Values are
converted between the ID representation and the 32-byte value
representation automatically.
Implementations§
Source§impl<S> PatchIdConstraint<S>where
S: ValueSchema,
impl<S> PatchIdConstraint<S>where
S: ValueSchema,
Trait Implementations§
Source§impl<'a, S> Constraint<'a> for PatchIdConstraint<S>where
S: ValueSchema,
impl<'a, S> Constraint<'a> for PatchIdConstraint<S>where
S: ValueSchema,
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<S> Freeze for PatchIdConstraint<S>
impl<S> RefUnwindSafe for PatchIdConstraint<S>where
S: RefUnwindSafe,
impl<S> Send for PatchIdConstraint<S>where
S: Send,
impl<S> Sync for PatchIdConstraint<S>where
S: Sync,
impl<S> Unpin for PatchIdConstraint<S>where
S: Unpin,
impl<S> UnsafeUnpin for PatchIdConstraint<S>
impl<S> UnwindSafe for PatchIdConstraint<S>where
S: 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