pub trait ConversionFactor<V>: PartialOrd + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> + Zero + One {
    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

Raises a ConversionFactor<V> to an integer power.

Converts a ConversionFactor<V> into its underlying storage type.

Implementations on Foreign Types

Implementors