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

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

A trait to get or set vehicle's capacity.

Required methods

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

Sets capacity.

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

Gets capacity.

Loading content...

Implementors

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

Loading content...