pub trait PartialOrder: Eq {
// Required method
fn less_equal(&self, other: &Self) -> bool;
// Provided method
fn less_than(&self, other: &Self) -> bool { ... }
}Expand description
A type that is partially ordered.
This trait is distinct from Rust’s PartialOrd trait to allow for a
different ordering. In particular, PartialOrder compares multidimensional
Timestamp representations for DBSP logical time, and PartialOrd
compares them for other purposes such as sorting.
Required Methods§
Sourcefn less_equal(&self, other: &Self) -> bool
fn less_equal(&self, other: &Self) -> bool
Returns true if one element is less than or equal to the other
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".