Enum grb::Error[][src]

pub enum Error {
    FromAPI(Stringi32),
    NulError(NulError),
    ModelObjectRemoved,
    ModelObjectPending,
    ModelObjectMismatch,
    ModelUpdateNeeded,
    AlgebraicError(String),
    NotYetSupported(String),
}

The error type for operations in Gurobi Rust API

Variants

FromAPI(Stringi32)

An error returned from Gurobi C API. Contains the message and the error code.

NulError(NulError)

Conversion to a C-style null-termined string failed. Contains the underlying std::ffi::NulError.

ModelObjectRemoved

Query/modifying a removed variable or constraint

ModelObjectPending

Model object hasn't been updated yet. A call to Model::update is needed.

ModelObjectMismatch

Model object comes from a different model

ModelUpdateNeeded

A call to Model::update is required before this operation

AlgebraicError(String)

Modelling errors caused by the user, usually by providing quadratic expressions to methods that expect linear terms such as Model::add_constr.

NotYetSupported(String)

Gurobi feature not yet supported by this crate. Currently for internal use only.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Eq for Error[src]

impl Error for Error[src]

impl From<NulError> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralEq for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.