package unitops
- Alphabetic
- Public
- Protected
Type Members
- class ConvertableUnits[U1, U2] extends AnyRef
An implicit trait that supports compile time checking of whether two unit types are convertable (aka compatible), and if so what their coefficient of conversion is.
An implicit trait that supports compile time checking of whether two unit types are convertable (aka compatible), and if so what their coefficient of conversion is. This implicit value will not exist if U1 and U2 are not convertable to one another.
- U1
a unit expression type
- U2
another unit expression type
- trait UnitAdd[N1, U1, N2, U2] extends AnyRef
An implicit trait that supports compile-time unit quantity addition
An implicit trait that supports compile-time unit quantity addition
- N1
the numeric type of the quantity value
- U1
the unit expresion type of the quantity
- N2
numeric type of a RHS quantity value
- U2
unit expression type of the RHS quantity
- trait UnitConverter[N1, U1, N2, U2] extends AnyRef
An implicit trait that supports compile-time unit quantity conversion, when possible.
An implicit trait that supports compile-time unit quantity conversion, when possible. Also implements conversion from N1 to N2. This implicit will not exist if U1 and U2 are not convertable to one another. It will also not exist if there is no defined conversion from N1 to N2.
- N1
the numeric type of the quantity value
- U1
the unit expression type of the quantity
- N2
numeric type of another quantity value
- U2
unit expression type of the other quantity
- trait UnitConverterDefaultPriority extends AnyRef
- trait UnitConverterP0 extends UnitConverterP1
- trait UnitConverterP1 extends UnitConverterP2
- trait UnitConverterP2 extends UnitConverterDefaultPriority
- trait UnitConverterPolicy[N1, U1, N2, U2] extends AnyRef
Define a customizable unit conversion policy.
Define a customizable unit conversion policy. If such an implicitly defined policy exists, it will override any built-in policies defined for UnitConverter.
- N1
the numeric type of the quantity value
- U1
the unit expression type of the quantity
- N2
numeric type of another quantity value
- U2
unit expression type of the other quantity
- trait UnitDiv[N1, U1, N2, U2] extends AnyRef
An implicit trait that supports compile-time unit quantity division
An implicit trait that supports compile-time unit quantity division
- N1
the numeric type of the quantity value
- U1
the unit expresion type of the quantity
- N2
numeric type of a RHS quantity value
- U2
unit expression type of the RHS quantity
- trait UnitDivP1 extends AnyRef
- trait UnitMul[N1, U1, N2, U2] extends AnyRef
An implicit trait that supports compile-time unit quantity multiplication
An implicit trait that supports compile-time unit quantity multiplication
- N1
the numeric type of the quantity value
- U1
the unit expresion type of the quantity
- N2
numeric type of a RHS quantity value
- U2
unit expression type of the RHS quantity
- trait UnitNeg[N] extends AnyRef
An implicit trait that supports compile-time unit quantity negation
An implicit trait that supports compile-time unit quantity negation
- N
the numeric type of the quantity value
- trait UnitOrd[N1, U1, N2, U2] extends AnyRef
An implicit trait that supports compile-time unit comparisons / ordering
An implicit trait that supports compile-time unit comparisons / ordering
- N1
the numeric type of the quantity value
- U1
the unit expresion type of the quantity
- N2
numeric type of a RHS quantity value
- U2
unit expression type of the RHS quantity
- trait UnitPow[N, U, P] extends AnyRef
An implicit trait that supports compile time unit exponents
An implicit trait that supports compile time unit exponents
- N
the numeric type of a quantity value
- U
the unit expression type of the quantity
- P
a literal type representing an integer exponent
- trait UnitString[U] extends AnyRef
An implicit trait that allows compile-time access to unit names and abbreviations.
An implicit trait that allows compile-time access to unit names and abbreviations. This includes compound unit expressions as well as base units and derived units.
- U
the unit, or unit expression
- trait UnitSub[N1, U1, N2, U2] extends AnyRef
An implicit trait that supports compile-time unit quantity subtraction
An implicit trait that supports compile-time unit quantity subtraction
- N1
the numeric type of the quantity value
- U1
the unit expresion type of the quantity
- N2
numeric type of a RHS quantity value
- U2
unit expression type of the RHS quantity