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

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

A trait to get or set demand.

Required methods

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

Sets demand.

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

Gets demand.

Loading content...

Implementors

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

Loading content...