pub struct ConstraintSet { /* private fields */ }Expand description
A set of constraints to evaluate together.
Implementations§
Source§impl ConstraintSet
impl ConstraintSet
Sourcepub fn push<C: Constraint + 'static>(&mut self, constraint: C)
pub fn push<C: Constraint + 'static>(&mut self, constraint: C)
Adds a constraint to the set.
Sourcepub fn evaluate(&self, ctx: &ConstraintContext<'_>) -> ConstraintReport
pub fn evaluate(&self, ctx: &ConstraintContext<'_>) -> ConstraintReport
Evaluates all constraints and returns a report.
Trait Implementations§
Source§impl Default for ConstraintSet
impl Default for ConstraintSet
Source§fn default() -> ConstraintSet
fn default() -> ConstraintSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConstraintSet
impl !RefUnwindSafe for ConstraintSet
impl Send for ConstraintSet
impl Sync for ConstraintSet
impl Unpin for ConstraintSet
impl !UnwindSafe for ConstraintSet
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