pub trait GeoNum: CoordNum {
type Ker: Kernel<Self>;
// Required method
fn total_cmp(&self, other: &Self) -> Ordering;
}
Expand description
A trait for methods which work for both integers and floating point
Required Associated Types§
Required Methods§
sourcefn total_cmp(&self, other: &Self) -> Ordering
fn total_cmp(&self, other: &Self) -> Ordering
Return the ordering between self and other.
For integers, this should behave just like Ord
.
For floating point numbers, unlike the standard partial comparison between floating point numbers, this comparison always produces an ordering.
See f64::total_cmp for details.
Object Safety§
This trait is not object safe.