pub trait ExactNumber:
Clone
+ Ord
+ Add<Output = Self>
+ Mul<Output = Self> {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn abs_diff(&self, other: &Self) -> Self;
}Expand description
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ExactNumber for BigInt
impl ExactNumber for BigUint
impl ExactNumber for NonNegF64
Available on crate feature
float only.