Struct copper::VarIdBinary
source · pub struct VarIdBinary(/* private fields */);
Expand description
Wrapper to provide specific helper methods for binary decision variables.
Trait Implementations§
source§impl Clone for VarIdBinary
impl Clone for VarIdBinary
source§fn clone(&self) -> VarIdBinary
fn clone(&self) -> VarIdBinary
Returns a copy 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 VarIdBinary
impl Debug for VarIdBinary
source§impl View for VarIdBinary
impl View for VarIdBinary
source§fn try_set_min(self, min: i32, ctx: &mut Context<'_>) -> Option<i32>
fn try_set_min(self, min: i32, ctx: &mut Context<'_>) -> Option<i32>
Try to set the provided value as domain minimum, failing the search space on infeasibility. Read more
source§fn try_set_max(self, max: i32, ctx: &mut Context<'_>) -> Option<i32>
fn try_set_max(self, max: i32, ctx: &mut Context<'_>) -> Option<i32>
Try to the set provided value as domain maximum, failing the search space on infeasibility. Read more
source§fn get_underlying_var(self) -> Option<VarId>
fn get_underlying_var(self) -> Option<VarId>
Get the handle of the variable this view depends on.
impl Copy for VarIdBinary
Auto Trait Implementations§
impl RefUnwindSafe for VarIdBinary
impl Send for VarIdBinary
impl Sync for VarIdBinary
impl Unpin for VarIdBinary
impl UnwindSafe for VarIdBinary
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