We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf1e3be commit 293cf75Copy full SHA for 293cf75
runtime/src/main/scala/coulomb/runtime/runtime.scala
@@ -34,6 +34,12 @@ object RuntimeUnit:
34
case class Pow(b: RuntimeUnit, e: Rational) extends RuntimeUnit
35
inline def of[U]: RuntimeUnit = ${ meta.unitRTU[U] }
36
37
+case class RuntimeQuantity[V](value: V, unit: RuntimeUnit)
38
+
39
+object RuntimeQuantity:
40
+ inline def apply[V, U](q: Quantity[V, U]): RuntimeQuantity[V] =
41
+ RuntimeQuantity(q.value, RuntimeUnit.of[U])
42
43
package syntax {
44
import scala.util.{Try, Success, Failure}
45
import coulomb.conversion.*
0 commit comments