Type Alias vrp_core::models::common::Dimensions
source · pub type Dimensions = HashMap<String, Arc<dyn Any + Send + Sync>, BuildHasherDefault<FxHasher>>;
Expand description
Multiple named dimensions which can contain anything:
- unit of measure, e.g. volume, mass, size, etc.
- set of skills
- tag.
Aliased Type§
struct Dimensions { /* private fields */ }
Trait Implementations§
source§impl<T: LoadOps> CapacityDimension<T> for Dimensions
impl<T: LoadOps> CapacityDimension<T> for Dimensions
source§fn set_capacity(&mut self, demand: T) -> &mut Self
fn set_capacity(&mut self, demand: T) -> &mut Self
Sets capacity.
source§fn get_capacity(&self) -> Option<&T>
fn get_capacity(&self) -> Option<&T>
Gets capacity.
source§impl ClusterDimension for Dimensions
impl ClusterDimension for Dimensions
source§fn set_cluster(&mut self, jobs: Vec<ClusterInfo>) -> &mut Self
fn set_cluster(&mut self, jobs: Vec<ClusterInfo>) -> &mut Self
Sets cluster.
source§fn get_cluster(&self) -> Option<&Vec<ClusterInfo>>
fn get_cluster(&self) -> Option<&Vec<ClusterInfo>>
Gets cluster.
source§impl<T: LoadOps> DemandDimension<T> for Dimensions
impl<T: LoadOps> DemandDimension<T> for Dimensions
source§fn set_demand(&mut self, demand: Demand<T>) -> &mut Self
fn set_demand(&mut self, demand: Demand<T>) -> &mut Self
Sets demand.
source§fn get_demand(&self) -> Option<&Demand<T>>
fn get_demand(&self) -> Option<&Demand<T>>
Gets demand.