pub trait Num:
Copy
+ PartialEq
+ Debug
+ Add<Output = Self>
+ Sub<Output = Self>
+ Mul<Output = Self> {
// Required methods
fn zero() -> Self;
fn one() -> Self;
fn from_i64(v: i64) -> Self;
}Expand description
Foundation: anything that can add, subtract, multiply, and has 0/1.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".