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

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

A trait to get or set vehicle’s capacity.

Required methods

Sets capacity.

Gets capacity.

Implementors