pub trait TotalOrd {
// Required method
fn total_cmp(&self, other: &Self) -> Ordering;
// Provided methods
fn total_min(self, other: Self) -> Self
where Self: Sized { ... }
fn total_max(self, other: Self) -> Self
where Self: Sized { ... }
}
Required Methods§
Provided Methods§
fn total_min(self, other: Self) -> Selfwhere
Self: Sized,
fn total_max(self, other: Self) -> Selfwhere
Self: Sized,
Object Safety§
This trait is not object safe.