Enum grote_opdracht::model::StateError [] [src]

pub enum StateError {
    AlreadyScheduled,
    DayFull,
    InfeasibleSwap,
    InvalidParameter,
    OverCapacity(usizeusize),
    NotScheduled,
}

All the errors that can occur while trying to modify the state.

Variants

Order has already been scheduled.

One of the chosen days is already fully scheduled.

The swap would be out of bounds.

The given indices are out of bounds.

The action would cause the truck to fill over its capacity. This contains on which (vehicle, day) a truck goes over capacity.

The order can't be removed because it hasn't been scheduled yet.

Trait Implementations

impl Debug for StateError
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for StateError
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for StateError
[src]