Enum gurobi::model::attr::StringAttr [] [src]

pub enum StringAttr {
    ModelName,
    VarName,
    ConstrName,
    QCName,
}

Variants

ModelNameVarNameConstrNameQCName

Trait Implementations

impl Clone for StringAttr

fn clone(&self) -> StringAttr

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for StringAttr

impl Debug for StringAttr

fn fmt(&self, __arg_0: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl Attr for StringAttr
[src]

type Out = String

type Buf = c_str

type RawGet = *mut c_str

type RawSet = c_str

unsafe fn get_attr(model: *mut GRBmodel, attrname: c_str, value: *mut c_str) -> c_int

unsafe fn set_attr(model: *mut GRBmodel, attrname: c_str, value: Self::RawSet) -> c_int

fn get(model: &Model, attr: Self) -> Result<Self::Out>

fn set(model: &mut Model, attr: Self, value: Self::Out) -> Result<()>

impl AttrArray for StringAttr
[src]

type Out = String

type Buf = c_str

type RawGet = *mut c_str

type RawSet = c_str

fn to_rawsets(values: &[String]) -> Result<Vec<c_str>>

unsafe fn get_attrelement(model: *mut GRBmodel, attrname: c_str, element: c_int, value: *mut c_str) -> c_int

unsafe fn set_attrelement(model: *mut GRBmodel, attrname: c_str, element: c_int, value: c_str) -> c_int

unsafe fn get_attrlist(model: *mut GRBmodel, attrname: c_str, len: c_int, ind: *const c_int, values: *mut c_str) -> c_int

unsafe fn set_attrlist(model: *mut GRBmodel, attrname: c_str, len: c_int, ind: *const c_int, values: *const c_str) -> c_int

fn get_element(model: &Model, attr: Self, element: i32) -> Result<Self::Out>

fn set_element(model: &mut Model, attr: Self, element: i32, value: Self::Out) -> Result<()>

fn get_list(model: &Model, attr: Self, ind: &[i32]) -> Result<Vec<Self::Out>>

fn set_list(model: &mut Model, attr: Self, ind: &[i32], values: &[Self::Out]) -> Result<()>