Enum grb::VarType [−][src]
#[repr(u8)] pub enum VarType { Binary, Continuous, Integer, SemiCont, SemiInt, }
Gurobi variable types (see manual)
Variants
Trait Implementations
impl Clone for VarType
[src]
impl Copy for VarType
[src]
impl Debug for VarType
[src]
impl Eq for VarType
[src]
impl Into<i8> for VarType
[src]
impl ObjAttrGet<Var, VarType> for VarVTypeAttr
[src]
fn get(&self, model: &Model, idx: i32) -> Result<VarType>
[src]
fn get_batch<I: IntoIterator<Item = Result<i32>>>(
&self,
model: &Model,
inds: I
) -> Result<Vec<VarType>>
[src]
&self,
model: &Model,
inds: I
) -> Result<Vec<VarType>>
impl ObjAttrSet<Var, VarType> for VarVTypeAttr
[src]
fn set(&self, model: &Model, idx: i32, val: VarType) -> Result<()>
[src]
fn set_batch<I: IntoIterator<Item = (Result<i32>, VarType)>>(
&self,
model: &Model,
idx_val_pairs: I
) -> Result<()>
[src]
&self,
model: &Model,
idx_val_pairs: I
) -> Result<()>
impl PartialEq<VarType> for VarType
[src]
fn eq(&self, other: &VarType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl StructuralEq for VarType
[src]
impl StructuralPartialEq for VarType
[src]
impl TryFrom<i8> for VarType
[src]
Auto Trait Implementations
impl RefUnwindSafe for VarType
impl Send for VarType
impl Sync for VarType
impl Unpin for VarType
impl UnwindSafe for VarType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,