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

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

Variants

ModelName
VarName
ConstrName
QCName

Trait Implementations

impl Attr for StringAttr
[src]

type Output = String

type Init = 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::Output>

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

impl AttrArray for StringAttr
[src]

type Output = String

type Init = 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: Self::RawSet) -> c_int

unsafe fn get_attrarray(model: *mut GRBmodel, attrname: c_str, first: c_int, len: c_int, values: *mut c_str) -> c_int

unsafe fn set_attrarray(model: *mut GRBmodel, attrname: c_str, first: c_int, len: c_int, values: *const Self::RawSet) -> 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::Output>

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

fn get_array(model: &Model, attr: Self, first: usize, len: usize) -> Result<Vec<Self::Output>>

fn set_array(model: &mut Model, attr: Self, first: usize, values: &[Self::Output]) -> Result<()>

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

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

fn init_array(len: usize) -> Vec<Self::Init>

Derived Implementations

impl Debug for StringAttr

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

Formats the value using the given formatter.