pub enum SolveError {
NoVehicles,
}Expand description
A structural error that stops construction before it can begin.
Over-constrained instances are not errors: stops that cannot be placed
are returned in Solution::unassigned with a
diagnostic reason, and the routable stops are still solved. The only thing
left here is a problem with no fleet at all.
Variants§
NoVehicles
The problem has no vehicles to assign routes to.
Trait Implementations§
Source§impl Debug for SolveError
impl Debug for SolveError
Source§impl Display for SolveError
impl Display for SolveError
impl Eq for SolveError
Source§impl Error for SolveError
impl Error for SolveError
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()
Source§impl PartialEq for SolveError
impl PartialEq for SolveError
Source§fn eq(&self, other: &SolveError) -> bool
fn eq(&self, other: &SolveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SolveError
Auto Trait Implementations§
impl Freeze for SolveError
impl RefUnwindSafe for SolveError
impl Send for SolveError
impl Sync for SolveError
impl Unpin for SolveError
impl UnsafeUnpin for SolveError
impl UnwindSafe for SolveError
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