pub struct ConstraintSet { /* private fields */ }Expand description
Collection of constraints
Implementations§
Source§impl ConstraintSet
impl ConstraintSet
pub fn new() -> Self
pub fn push<C: Constraint + 'static>(&mut self, constraint: C)
pub fn evaluate(&self, ctx: &ConstraintContext<'_>) -> ConstraintReport
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