Struct grb::Var [−][src]
A Gurobi variable.
To interact with the attributes of a variable, use Model::get_obj_attr
and Model::set_obj_attr
Trait Implementations
impl Add<Expr> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: Expr) -> Expr
[src]
impl Add<Var> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Expr
[src]
impl Add<Var> for Expr
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: Var) -> Expr
[src]
impl Add<f32> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Expr
[src]
impl Add<f64> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Expr
[src]
impl Add<i16> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: i16) -> Expr
[src]
impl Add<i32> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Expr
[src]
impl Add<i64> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: i64) -> Expr
[src]
impl Add<i8> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: i8) -> Expr
[src]
impl Add<isize> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: isize) -> Expr
[src]
impl Add<u16> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: u16) -> Expr
[src]
impl Add<u32> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Expr
[src]
impl Add<u64> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Expr
[src]
impl Add<u8> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: u8) -> Expr
[src]
impl Add<usize> for Var
[src]
type Output = Expr
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Expr
[src]
impl AttachModel for Var
[src]
impl Clone for Var
[src]
impl Copy for Var
[src]
impl Debug for Var
[src]
impl Eq for Var
[src]
impl From<Var> for Expr
[src]
impl Hash for Var
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl ModelObject for Var
[src]
impl Mul<Var> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Expr
[src]
impl Mul<f32> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Expr
[src]
impl Mul<f64> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Expr
[src]
impl Mul<i16> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Expr
[src]
impl Mul<i32> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Expr
[src]
impl Mul<i64> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> Expr
[src]
impl Mul<i8> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: i8) -> Expr
[src]
impl Mul<isize> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: isize) -> Expr
[src]
impl Mul<u16> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> Expr
[src]
impl Mul<u32> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Expr
[src]
impl Mul<u64> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: u64) -> Expr
[src]
impl Mul<u8> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: u8) -> Expr
[src]
impl Mul<usize> for Var
[src]
type Output = Expr
The resulting type after applying the *
operator.
fn mul(self, rhs: usize) -> Expr
[src]
impl Neg for Var
[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 ObjAttrSet<Var, i8> for VarVTypeAttr
[src]
fn set(&self, model: &Model, idx: i32, val: c_char) -> Result<()>
[src]
fn set_batch<I: IntoIterator<Item = (Result<i32>, c_char)>>(
&self,
model: &Model,
idx_val_pairs: I
) -> Result<()>
[src]
&self,
model: &Model,
idx_val_pairs: I
) -> Result<()>
impl PartialEq<Var> for Var
[src]
impl StructuralEq for Var
[src]
impl StructuralPartialEq for Var
[src]
impl Sub<Expr> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: Expr) -> Expr
[src]
impl Sub<Var> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Expr
[src]
impl Sub<Var> for Expr
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: Var) -> Expr
[src]
impl Sub<f32> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Expr
[src]
impl Sub<f64> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Expr
[src]
impl Sub<i16> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: i16) -> Expr
[src]
impl Sub<i32> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Expr
[src]
impl Sub<i64> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: i64) -> Expr
[src]
impl Sub<i8> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: i8) -> Expr
[src]
impl Sub<isize> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: isize) -> Expr
[src]
impl Sub<u16> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: u16) -> Expr
[src]
impl Sub<u32> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Expr
[src]
impl Sub<u64> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: u64) -> Expr
[src]
impl Sub<u8> for Var
[src]
type Output = Expr
The resulting type after applying the -
operator.
fn sub(self, rhs: u8) -> Expr
[src]
impl Sub<usize> for Var
[src]
Auto Trait Implementations
impl RefUnwindSafe for Var
[src]
impl Send for Var
[src]
impl Sync for Var
[src]
impl Unpin for Var
[src]
impl UnwindSafe for Var
[src]
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>,