pub trait TotalOrd {
fn total_cmp(&self, other: &Self) -> Ordering;
fn total_min(self, other: Self) -> Self
where
Self: Sized,
{ ... }
fn total_max(self, other: Self) -> Self
where
Self: Sized,
{ ... }
}
pub trait TotalOrd {
fn total_cmp(&self, other: &Self) -> Ordering;
fn total_min(self, other: Self) -> Self
where
Self: Sized,
{ ... }
fn total_max(self, other: Self) -> Self
where
Self: Sized,
{ ... }
}