pub trait Num:
Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self>
+ Div<Output = Self>
+ Div
+ AddAssign
+ SubAssign
+ Neg<Output = Self>
+ PartialOrd
+ Copy
+ Clone
+ From<u8>
+ Default
+ Display
+ Debug
+ Sync
+ Send
+ PartialOrd
+ 'static { }
Expand description
Numeric type
Special Trait
For most of the numbers like (i16, i32, i64, i128, f32, f64)
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.