pub trait ArithmeticOps<T>: Copy {
// Required methods
fn add(self, other: T) -> T;
fn sub(self, other: T) -> T;
fn mul(self, other: T) -> T;
fn div(self, other: T) -> Result<T, TrapCode>;
}Expand description
Arithmetic operations.
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.