pub trait Numeric:
Clone
+ Copy
+ PartialEq
+ PartialOrd
+ 'static {
const INTEGRAL: bool;
const MIN: Self;
const MAX: Self;
// Required methods
fn to_f64(self) -> f64;
fn from_f64(num: f64) -> Self;
}
Expand description
Implemented for all builtin numeric types
Required Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.