package dimensional
- Source
- package.scala
- Alphabetic
- By Inheritance
- dimensional
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Measure[N](value: N, units: Units, error: Option[N] = none) extends Product with Serializable
A magnitude of type
Nand a runtime representation of a physical unit. - type Of[+T, U] = T with Tagged[U]
- implicit class QuantityOps[N, U] extends AnyRef
- class TaggedUnit[U, T] extends Tag[UnitOfMeasure[U], T]
Typeclass placing a
Tagon a unit of measure. - final case class UnitOfMeasure[U](name: String, abbv: String, serialized: String) extends Units with Product with Serializable
Type-parametrized runtime representation of physical unit
U.Type-parametrized runtime representation of physical unit
U.Can be automatically derived if there's an implicit
BaseUnit[U]orDerivedUnit[U, _]in scope. - final case class UnitStringDef[U](full: String, abbv: String, serialized: String) extends UnitString[U] with TypeString[U] with Product with Serializable
Convenience class to create a coulomb
UnitStringandTypeStringin one go. - trait Units extends AnyRef
Runtime representation of a physical unit.
Runtime representation of a physical unit. Wraps:
- A type (usually phantom), meant to be
coulomb's type for the unit; and - A
UnitDefinition, which is a common trait ofcoulomb'sBaseUnitandDerivedUnit.
In
coulombunits are types. However in some cases we want to have runtime representations of units. - A type (usually phantom), meant to be
Value Members
- implicit def typeStringFromUnitString[U](implicit ev: UnitString[U]): TypeString[U]
- object BaseUnitDef
- object DerivedUnitDef
- object Measure extends Serializable
- object UnitOfMeasure extends Serializable
- object UnitStringDef extends Serializable
- object Units