pub struct IntConstraint {
pub expr: IntExpr,
pub strict: bool,
}Expand description
Integer constraint representing expr <= 0 or expr < 0.
For integers, strict inequalities can be converted to non-strict:
x < k is equivalent to x <= k - 1.
Fields§
§expr: IntExprThe linear expression (constraint is expr OP 0).
strict: boolIf true, this is a strict inequality (< 0).
If false, this is a non-strict inequality (<= 0).
Implementations§
Source§impl IntConstraint
impl IntConstraint
Sourcepub fn is_satisfied_constant(&self) -> bool
pub fn is_satisfied_constant(&self) -> bool
Check if a constant constraint is satisfied
Trait Implementations§
Source§impl Clone for IntConstraint
impl Clone for IntConstraint
Source§fn clone(&self) -> IntConstraint
fn clone(&self) -> IntConstraint
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 moreAuto Trait Implementations§
impl Freeze for IntConstraint
impl RefUnwindSafe for IntConstraint
impl Send for IntConstraint
impl Sync for IntConstraint
impl Unpin for IntConstraint
impl UnwindSafe for IntConstraint
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