pub trait ConversionFactor<V>:
PartialOrd
+ Add<Self, Output = Self>
+ Sub<Self, Output = Self>
+ Mul<Self, Output = Self>
+ Div<Self, Output = Self>
+ Zero
+ One {
// Required methods
fn powi(self, e: i32) -> Self;
fn value(self) -> V;
}
Expand description
Trait representing a conversion factor.
§Generic Parameters
V
: Underlying storage type trait is implemented for.
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.