[][src]Struct gurobi::Constr

pub struct Constr(_);

Proxy object of a linear constraint

Methods from Deref<Target = Proxy>

pub fn index(&self) -> i32[src]

pub fn get<A: AttrArray>(&self, model: &Model, attr: A) -> Result<A::Out>[src]

Query the value of attribute.

pub fn set<A: AttrArray>(
    &self,
    model: &mut Model,
    attr: A,
    val: A::Out
) -> Result<()>
[src]

Set the value of attribute.

pub fn remove(&mut self)[src]

Trait Implementations

impl Clone for Constr[src]

impl Debug for Constr[src]

impl Deref for Constr[src]

type Target = Proxy

The resulting type after dereferencing.

impl DerefMut for Constr[src]

impl PartialEq<Constr> for Constr[src]

Auto Trait Implementations

impl !RefUnwindSafe for Constr

impl !Send for Constr

impl !Sync for Constr

impl Unpin for Constr

impl !UnwindSafe for Constr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.