pub trait NumericOps:
Zero
+ One
+ NumCast
+ Copy
+ AddAssign
+ MulAssign
+ SubAssign
+ PartialOrd
+ Bounded
+ Add<Output = Self>
+ Sum
+ Debug
+ Default { }Expand description
A trait defining fundamental numeric operations and constraints.
This trait bundles common numeric operations required for mathematical computations, including zero/one elements, numeric casting, assignment operations, ordering, bounds checking, and basic arithmetic. Types implementing this trait can be used in generic numeric algorithms.
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.