Trait vrp_core::models::common::CapacityDimension
source · pub trait CapacityDimension<T: LoadOps> {
// Required methods
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§
sourcefn set_capacity(&mut self, demand: T) -> &mut Self
fn set_capacity(&mut self, demand: T) -> &mut Self
Sets capacity.
sourcefn get_capacity(&self) -> Option<&T>
fn get_capacity(&self) -> Option<&T>
Gets capacity.
Object Safety§
This trait is not object safe.