pub struct BoolVar<'model> { /* private fields */ }Expand description
Implementations§
Source§impl<'model> BoolVar<'model>
impl<'model> BoolVar<'model>
Sourcepub fn if_then_else(
&self,
then_constraint: &Constraint<'model>,
else_constraint: &Constraint<'model>,
)
pub fn if_then_else( &self, then_constraint: &Constraint<'model>, else_constraint: &Constraint<'model>, )
Posts a constraint ensuring that if self BoolVar is true, then then_constraint
must be satisfied as well. Otherwise, else_constraint must be satisfied.
Sourcepub fn if_then(&self, then_constraint: &Constraint<'model>)
pub fn if_then(&self, then_constraint: &Constraint<'model>)
Creates an if-then constraint: self BoolVar -> then_constraint.
Sourcepub fn if_only_if(&self, constraint: &Constraint<'model>)
pub fn if_only_if(&self, constraint: &Constraint<'model>)
Posts an equivalence constraint stating that:
self BoolVar is true <=> constraint is satisfied.
Trait Implementations§
Auto Trait Implementations§
impl<'model> Freeze for BoolVar<'model>
impl<'model> RefUnwindSafe for BoolVar<'model>
impl<'model> !Send for BoolVar<'model>
impl<'model> !Sync for BoolVar<'model>
impl<'model> Unpin for BoolVar<'model>
impl<'model> UnsafeUnpin for BoolVar<'model>
impl<'model> UnwindSafe for BoolVar<'model>
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