pub struct ConstraintSet { /* private fields */ }Expand description
A constraint set: a collection of level constraints.
Implementations§
Source§impl ConstraintSet
impl ConstraintSet
Sourcepub fn add(&mut self, c: LevelConstraint)
pub fn add(&mut self, c: LevelConstraint)
Add a constraint.
Sourcepub fn all_satisfied(&self) -> bool
pub fn all_satisfied(&self) -> bool
Check if all constraints are satisfied.
Sourcepub fn unsatisfied(&self) -> Vec<&LevelConstraint>
pub fn unsatisfied(&self) -> Vec<&LevelConstraint>
Return unsatisfied constraints.
Trait Implementations§
Source§impl Clone for ConstraintSet
impl Clone for ConstraintSet
Source§fn clone(&self) -> ConstraintSet
fn clone(&self) -> ConstraintSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstraintSet
impl Debug for ConstraintSet
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 UnsafeUnpin 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