pub trait OrdArithmetic<T>: Arithmetic<T> {
// Required method
fn partial_cmp(&self, x: &T, y: &T) -> Option<Ordering>;
}
Expand description
Extends an Arithmetic
with a comparison operation on values.
pub trait OrdArithmetic<T>: Arithmetic<T> {
// Required method
fn partial_cmp(&self, x: &T, y: &T) -> Option<Ordering>;
}
Extends an Arithmetic
with a comparison operation on values.