Trait arithmetic_eval::arith::OrdArithmetic [−][src]
pub trait OrdArithmetic<T>: Arithmetic<T> { 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
Implementors
impl<T> OrdArithmetic<T> for StdArithmetic where
Self: Arithmetic<T>,
T: PartialOrd,
[src]
impl<T> OrdArithmetic<T> for StdArithmetic where
Self: Arithmetic<T>,
T: PartialOrd,
[src]impl<T> OrdArithmetic<T> for WrappingArithmetic where
Self: Arithmetic<T>,
T: PartialOrd,
[src]
impl<T> OrdArithmetic<T> for WrappingArithmetic where
Self: Arithmetic<T>,
T: PartialOrd,
[src]impl<T, A> OrdArithmetic<T> for FullArithmetic<T, A> where
A: Arithmetic<T>,
[src]
impl<T, A> OrdArithmetic<T> for FullArithmetic<T, A> where
A: Arithmetic<T>,
[src]impl<T, Kind> OrdArithmetic<T> for CheckedArithmetic<Kind> where
Self: Arithmetic<T>,
T: PartialOrd,
[src]
impl<T, Kind> OrdArithmetic<T> for CheckedArithmetic<Kind> where
Self: Arithmetic<T>,
T: PartialOrd,
[src]