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

source§

fn set_capacity(&mut self, demand: T) -> &mut Self

Sets capacity.
source§

fn get_capacity(&self) -> Option<&T>

Gets capacity.
source§

impl ClusterDimension for Dimensions

source§

fn set_cluster(&mut self, jobs: Vec<ClusterInfo>) -> &mut Self

Sets cluster.
source§

fn get_cluster(&self) -> Option<&Vec<ClusterInfo>>

Gets cluster.
source§

impl<T: LoadOps> DemandDimension<T> for Dimensions

source§

fn set_demand(&mut self, demand: Demand<T>) -> &mut Self

Sets demand.
source§

fn get_demand(&self) -> Option<&Demand<T>>

Gets demand.
source§

impl IdDimension for Dimensions

source§

fn set_id(&mut self, id: &str) -> &mut Self

Sets value as id.
source§

fn get_id(&self) -> Option<&String>

Gets id value if present.
source§

impl ValueDimension for Dimensions

source§

fn get_value<T: 'static>(&self, key: &str) -> Option<&T>

Gets value from dimension with given key.
source§

fn set_value<T: 'static + Sync + Send>(&mut self, key: &str, value: T)

Sets value in dimension with given key and value.