Quantity.this - multiple declarations
Function Quantity.this
Creates a new quantity from another one with the same dimensions.
this(Q)
(
auto const ref Q qty
)
if (isQuantity!Q);
this(Q)
(
auto const ref Q qty
)
if (isQVariant!Q);
If Q is a QVariant, throws a DimensionException if the parsed quantity doesn't have the same dimensions as Q. If Q is a Quantity, inconsistent dimensions produce a compilation error.
Function Quantity.this
Creates a new dimensionless quantity from a number
this(T)
(
T scalar
)
if (isNumeric!T && isDimensionless);