[][src]Trait vrp_core::models::common::DemandDimension

pub trait DemandDimension<T: Load + Add<Output = T> + Sub<Output = T> + 'static> {
    pub fn set_demand(&mut self, demand: Demand<T>) -> &mut Self;
pub fn get_demand(&self) -> Option<&Demand<T>>; }

A trait to get or set demand.

Required methods

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

Sets demand.

pub fn get_demand(&self) -> Option<&Demand<T>>[src]

Gets demand.

Loading content...

Implementors

impl<T: Load + Add<Output = T> + Sub<Output = T> + 'static> DemandDimension<T> for Dimensions[src]

Loading content...