pub trait PartialOrder {
// Required methods
fn lt(&self, other: &Self) -> bool;
fn le(&self, other: &Self) -> bool;
fn gt(&self, other: &Self) -> bool;
fn ge(&self, other: &Self) -> bool;
}Required Methods§
fn lt(&self, other: &Self) -> bool
fn le(&self, other: &Self) -> bool
fn gt(&self, other: &Self) -> bool
fn ge(&self, other: &Self) -> bool
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.