heim_common::units::ratio

Type Alias Ratio

Source
pub type Ratio<U, V> = Quantity<dyn Dimension<Th = Z0, I = Z0, N = Z0, Kind = dyn Kind, L = Z0, M = Z0, J = Z0, T = Z0>, U, V>;
Expand description

Ratio (dimensionless quantity).

§Generic Parameters

  • U: Base units.
  • V: Underlying storage type.

Aliased Type§

struct Ratio<U, V> {
    pub dimension: PhantomData<dyn Dimension<Th = Z0, I = Z0, N = Z0, Kind = dyn Kind, L = Z0, M = Z0, J = Z0, T = Z0>>,
    pub units: PhantomData<U>,
    pub value: V,
}

Fields§

§dimension: PhantomData<dyn Dimension<Th = Z0, I = Z0, N = Z0, Kind = dyn Kind, L = Z0, M = Z0, J = Z0, T = Z0>>

Quantity dimension. See Dimension.

§units: PhantomData<U>

Quantity base units. See Units.

§value: V

Quantity value stored in the base units for the quantity.