heim_common::units::ratio

Type Alias Ratio

Source
pub type Ratio<U, V> = Quantity<dyn Dimension<J = Z0, T = Z0, I = Z0, Kind = dyn Kind, L = Z0, Th = Z0, M = Z0, N = 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<J = Z0, T = Z0, I = Z0, Kind = dyn Kind, L = Z0, Th = Z0, M = Z0, N = Z0>>,
    pub units: PhantomData<U>,
    pub value: V,
}

Fields§

§dimension: PhantomData<dyn Dimension<J = Z0, T = Z0, I = Z0, Kind = dyn Kind, L = Z0, Th = Z0, M = Z0, N = 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.