Trait gurobi::env::Param
[−]
[src]
pub trait Param: Sized + Into<CString> {
type Out;
type Buf: Init + Into<Self::Out> + AsRawPtr<Self::RawFrom>;
type RawFrom;
type RawTo: FromRaw<Self::Out>;
unsafe fn get_param(env: *mut GRBenv, paramname: c_str, value: Self::RawFrom) -> c_int;
unsafe fn set_param(env: *mut GRBenv, paramname: c_str, value: Self::RawTo) -> c_int;
fn get(env: &Env, param: Self) -> Result<Self::Out> { ... }
fn set(env: &mut Env, param: Self, value: Self::Out) -> Result<()> { ... }
}provides function to query/set the value of parameters.
Associated Types
type Out
type Buf: Init + Into<Self::Out> + AsRawPtr<Self::RawFrom>
type RawFrom
type RawTo: FromRaw<Self::Out>
Required Methods
unsafe fn get_param(env: *mut GRBenv, paramname: c_str, value: Self::RawFrom) -> c_int
unsafe fn set_param(env: *mut GRBenv, paramname: c_str, value: Self::RawTo) -> c_int
Provided Methods
fn get(env: &Env, param: Self) -> Result<Self::Out>
fn set(env: &mut Env, param: Self, value: Self::Out) -> Result<()>
Implementors
impl Param for IntParamimpl Param for DoubleParamimpl Param for StringParam