pub trait Load:
Add
+ Sub
+ PartialOrd
+ Copy
+ Default
+ Debug
+ Send
+ Sync {
// Required methods
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) -> Float;
}
Expand description
Represents a load type used to represent customer’s demand or vehicle’s load.
Required Methods§
Sourcefn is_not_empty(&self) -> bool
fn is_not_empty(&self) -> bool
Returns true if it represents an empty load.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.