Enum grote_opdracht::model::StateError
[−]
[src]
pub enum StateError {
AlreadyScheduled,
DayFull,
InfeasibleSwap,
InvalidParameter,
OverCapacity(usize, usize),
NotScheduled,
}All the errors that can occur while trying to modify the state.
Variants
AlreadyScheduledOrder has already been scheduled.
DayFullOne of the chosen days is already fully scheduled.
InfeasibleSwapThe swap would be out of bounds.
InvalidParameterThe given indices are out of bounds.
OverCapacity(usize, usize)The action would cause the truck to fill over its capacity. This contains on which
(vehicle, day) a truck goes over capacity.
NotScheduledThe order can't be removed because it hasn't been scheduled yet.
Trait Implementations
impl Debug for StateError[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for StateError[src]
fn eq(&self, __arg_0: &StateError) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &StateError) -> bool[src]
This method tests for !=.