pub trait Numeric:
Num
+ NumCast
+ Copy
+ Default
+ ToPrimitive
+ PartialEq
+ 'static { }Expand description
Trait for types valid as numerical.
Useful when specifying my_fn::<T: Numeric>() {}.
Extends and constrains the num-traits Num implementation to fit the crate’s type universe.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".