Conversion

A conversion »link« to a target unit, consisting of a callable converting a value to the target, and one for converting it back.

Is used in the optional Conversions property of base units, see the documentation for UnitImpl.

  1. struct Conversion(T, alias R, alias I)
  2. template Conversion(alias t, alias R, alias I)
    @safe
    template Conversion () if (
    isUnitInstance!t
    ) {}

Meta