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.
Required Methods§
Trait Implementations§
Source§impl<T> Arithmetic<T> for Box<dyn OrdArithmetic<T>>
impl<T> Arithmetic<T> for Box<dyn OrdArithmetic<T>>
Source§impl<T> Debug for dyn OrdArithmetic<T> + '_
impl<T> Debug for dyn OrdArithmetic<T> + '_
Source§impl<T> OrdArithmetic<T> for Box<dyn OrdArithmetic<T>>
impl<T> OrdArithmetic<T> for Box<dyn OrdArithmetic<T>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".