Trait uom::ConversionFactor
[−]
[src]
pub trait ConversionFactor<V>: Div<Self, Output = Self> + Mul<Self, Output = Self> + One { fn powi(self, e: i32) -> Self; fn value(self) -> V; }
Trait representing a conversion factor.
Required Methods
fn powi(self, e: i32) -> Self
Raises a ConversionFactor<V>
to an integer power.
fn value(self) -> V
Converts a ConversionFactor<V>
into its underlying type.