pub trait Unit:
Additive
+ Mul<Self::Precision, Output = Self>
+ MulAssign<Self::Precision>
+ Div<Self::Precision, Output = Self>
+ DivAssign<Self::Precision>
+ Rem<Output = Self>
+ RemAssign
+ PartialEq {
type Precision: Number + PrimitiveType + OverflowBehavior;
}Expand description
To construct basic unit from their inner precision type.
Required Associated Types§
type Precision: Number + PrimitiveType + OverflowBehavior
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".