Struct chuffed_rs::bindings::IntVar

source ·
#[repr(C)]
pub struct IntVar {
Show 19 fields pub _base: Var, pub var_id: c_int, pub min: Tint, pub max: Tint, pub min0: c_int, pub max0: c_int, pub shadow_val: c_int, pub in_scip: bool, pub all_in_scip: bool, pub should_be_learnable: bool, pub should_be_decidable: bool, pub vals: *mut Tchar, pub preferred_val: PreferredVal, pub activity: f64, pub changes: c_int, pub in_queue: bool, pub pinfo: vec<IntVar_PropInfo>, pub sbps_value_selection: bool, pub last_solution_value: c_int,
}

Fields§

§_base: Var§var_id: c_int§min: Tint§max: Tint§min0: c_int§max0: c_int§shadow_val: c_int§in_scip: bool§all_in_scip: bool§should_be_learnable: bool§should_be_decidable: bool§vals: *mut Tchar§preferred_val: PreferredVal§activity: f64§changes: c_int§in_queue: bool§pinfo: vec<IntVar_PropInfo>§sbps_value_selection: bool§last_solution_value: c_int

Implementations§

source§

impl IntVar

source

pub unsafe fn updateMin(&mut self)

source

pub unsafe fn updateMax(&mut self)

source

pub unsafe fn updateFixed(&mut self)

source

pub unsafe fn wakePropagators(&mut self)

source

pub unsafe fn simplifyWatches(&mut self) -> c_int

source

pub unsafe fn specialiseToEL(&mut self)

source

pub unsafe fn specialiseToLL(&mut self)

source

pub unsafe fn specialiseToSL(&mut self, values: *mut vec<c_int>)

source

pub unsafe fn initVals(&mut self, optional: bool)

source

pub unsafe fn new(min: c_int, max: c_int) -> Self

Trait Implementations§

source§

impl Debug for IntVar

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for IntVar

§

impl !RefUnwindSafe for IntVar

§

impl !Send for IntVar

§

impl !Sync for IntVar

§

impl Unpin for IntVar

§

impl UnwindSafe for IntVar

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.