pub trait ArithmeticType<S>:
Mul<S, Output = Self>
+ AddAssign<Self>
+ SubAssign<Self>
+ Add<Output = Self>
+ Sub<Output = Self>
+ Neg<Output = Self>
+ Clone
+ Sized{ }
Expand description
Trait representing a type isomorphic to a lin alg vector in the most basic sense. That is, it supports addition and scalar multiplication. Useful to write functions that work on arithmetic types.
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.