pub enum LapError {
BadShape,
InvalidCost(usize, usize),
Infeasible,
Overflow,
}Expand description
Errors returned by the solver and by MatrixView constructors.
Variants§
BadShape
The data slice is too short or a stride points outside it.
InvalidCost(usize, usize)
An entry is NaN, has the wrong sign of infinity, or is too large in
magnitude for exact integer arithmetic. Holds (row, col).
Infeasible
No complete assignment avoids the forbidden (infinite) entries.
Overflow
An integer intermediate value, dual, or total cost does not fit the accumulator.
Trait Implementations§
impl Eq for LapError
Source§impl Error for LapError
impl Error for LapError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for LapError
Auto Trait Implementations§
impl Forget for LapError
impl Freeze for LapError
impl Move for LapError
impl RefUnwindSafe for LapError
impl Send for LapError
impl Sync for LapError
impl Unpin for LapError
impl UnsafeUnpin for LapError
impl UnwindSafe for LapError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more