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

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; }

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

Required methods

fn is_not_empty(&self) -> bool

Returns true if it represents an empty load.

fn max_load(self, other: Self) -> Self

Returns max load value.

fn can_fit(&self, other: &Self) -> bool

Returns true if other can be loaded into existing capacity.

Loading content...

Implementors

impl Load for MultiDimLoad[src]

impl Load for SingleDimLoad[src]

Loading content...