pub trait Load: Add + Sub + Ord + Copy + Default + Send + Sync {
    fn is_not_empty(&self) -> bool;
    fn max_load(self, other: Self) -> Self;
    fn can_fit(&self, other: &Self) -> bool;
    fn ratio(&self, other: &Self) -> f64;
}
Expand description

Represents a load type used to represent customer’s demand or vehicle’s load.

Required Methods

Returns true if it represents an empty load.

Returns max load value.

Returns true if other can be loaded into existing capacity.

Returns ratio.

Implementors