Struct vrp_core::construction::features::CapacityKeys
source · pub struct CapacityKeys {
pub current_capacity: StateKey,
pub max_future_capacity: StateKey,
pub max_past_capacity: StateKey,
pub max_load: StateKey,
}
Expand description
Combines all keys needed for capacity feature usage.
Fields§
§current_capacity: StateKey
A key which tracks current vehicle capacity.
max_future_capacity: StateKey
A key which tracks maximum vehicle capacity ahead in route.
max_past_capacity: StateKey
A key which tracks maximum capacity backward in route.
max_load: StateKey
A key which tracks max load in tour.
Trait Implementations§
source§impl Clone for CapacityKeys
impl Clone for CapacityKeys
source§fn clone(&self) -> CapacityKeys
fn clone(&self) -> CapacityKeys
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CapacityKeys
impl Debug for CapacityKeys
source§impl From<&mut StateKeyRegistry> for CapacityKeys
impl From<&mut StateKeyRegistry> for CapacityKeys
source§fn from(state_registry: &mut StateKeyRegistry) -> Self
fn from(state_registry: &mut StateKeyRegistry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CapacityKeys
impl Send for CapacityKeys
impl Sync for CapacityKeys
impl Unpin for CapacityKeys
impl UnwindSafe for CapacityKeys
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