Skip to main content

UnitHalves

Trait UnitHalves 

Source
pub trait UnitHalves {
    type First;
    type Second;
}
Expand description

The units the halves of a tuple take from a unit meant for the pair.

A tuple is scaled either by a step in one variable, which both halves take, or by a quantity whose unit is the pair the halves already carry. Naming both through one trait keeps a single scaling rule for tuples rather than two that would overlap.

Required Associated Types§

Source

type First

The unit the first half takes.

Source

type Second

The unit the second half takes.

Implementations on Foreign Types§

Source§

impl<A, B> UnitHalves for (A, B)

Source§

type First = A

Source§

type Second = B

Implementors§

Source§

impl UnitHalves for Action

Source§

impl UnitHalves for Amount

Source§

impl UnitHalves for Area

Source§

impl UnitHalves for Charge

Source§

impl UnitHalves for Dimensionless

Source§

impl UnitHalves for Energy

Source§

impl UnitHalves for Entropy

Source§

impl UnitHalves for Force

Source§

impl UnitHalves for ForcePerLength

Source§

impl UnitHalves for ForcePerVelocity

Source§

impl UnitHalves for Length

Source§

impl UnitHalves for MolarEnergy

Source§

impl UnitHalves for MolarEntropy

Source§

impl UnitHalves for Power

Source§

impl UnitHalves for PowerDensity

Source§

impl UnitHalves for PowerPerArea

Source§

impl UnitHalves for PowerPerAreaTemperature

Source§

impl UnitHalves for PowerPerLengthTemperature

Source§

impl UnitHalves for PowerPerTemperature

Source§

impl UnitHalves for PowerPerVolumeTemperature

Source§

impl UnitHalves for PowerTemperature

Source§

impl UnitHalves for PowerTemperatureDensity

Source§

impl UnitHalves for Rate

Source§

impl UnitHalves for ReciprocalAmount

Source§

impl UnitHalves for ReciprocalArea

Source§

impl UnitHalves for ReciprocalForcePerLength

Source§

impl UnitHalves for ReciprocalLength

Source§

impl UnitHalves for ReciprocalStress

Source§

impl UnitHalves for ReciprocalTemperature

Source§

impl UnitHalves for ReciprocalViscosity

Source§

impl UnitHalves for SecondMomentOfArea

Source§

impl UnitHalves for Stress

Source§

impl UnitHalves for StressPerArea

Source§

impl UnitHalves for StressPerLength

Source§

impl UnitHalves for StressPerTemperature

Source§

impl UnitHalves for Temperature

Source§

impl UnitHalves for TemperaturePerLength

Source§

impl UnitHalves for Time

Source§

impl UnitHalves for Velocity

Source§

impl UnitHalves for Viscosity

Source§

impl UnitHalves for ViscosityPerArea

Source§

impl UnitHalves for ViscosityPerLength

Source§

impl UnitHalves for Volume