pub trait MathOps<T>:
Copy
+ Clone
+ Debug {
// Required methods
fn sqrt(self) -> T;
fn abs(self) -> T;
fn min(self, other: T) -> T;
fn max(self, other: T) -> T;
fn floor(self) -> T;
fn ceil(self) -> T;
fn pow(self, exp: T) -> T;
fn ln(self) -> T;
fn log10(self) -> T;
}Expand description
Core mathematical operations that all numeric types should support
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.