[−][src]Trait arithmetic_eval::arith::OrdArithmetic
Extends an Arithmetic
with a comparison operation on numbers.
Required methods
pub fn partial_cmp(&self, x: &T, y: &T) -> Option<Ordering>
[src]
Compares two numbers. Returns None
if the numbers are not comparable, or the comparison
result otherwise.
Trait Implementations
impl<T, '_> Debug for dyn OrdArithmetic<T> + '_
[src]
Implementors
impl<T> OrdArithmetic<T> for StdArithmetic where
Self: Arithmetic<T>,
T: PartialOrd,
[src]
Self: Arithmetic<T>,
T: PartialOrd,
impl<T> OrdArithmetic<T> for WrappingArithmetic where
Self: Arithmetic<T>,
T: PartialOrd,
[src]
Self: Arithmetic<T>,
T: PartialOrd,
impl<T, A> OrdArithmetic<T> for FullArithmetic<T, A> where
A: Arithmetic<T>,
[src]
A: Arithmetic<T>,
impl<T, Kind> OrdArithmetic<T> for CheckedArithmetic<Kind> where
Self: Arithmetic<T>,
T: PartialOrd,
[src]
Self: Arithmetic<T>,
T: PartialOrd,