Packages

object QValue

Source
QValue.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. QValue
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Macros extends AnyRef

Value Members

  1. lazy val One: QValue
  2. lazy val Zero: QValue
  3. def fromDouble(d: Double): ParseResult[QValue]
  4. def fromString(s: String): ParseResult[QValue]
  5. def fromThousandths(thousandths: Int): ParseResult[QValue]
  6. implicit val http4sHttpCodecForQValue: HttpCodec[QValue]
  7. implicit val http4sOrderForQValue: Order[QValue]
  8. implicit val http4sShowForQValue: Show[QValue]
  9. def parse(s: String): ParseResult[QValue]
  10. def unsafeFromString(s: String): QValue
  11. def (thousandths: Int): QValue

    Exists to support compile-time verified literals.

    Exists to support compile-time verified literals. Do not call directly.

Deprecated Value Members

  1. macro def q(d: Double): QValue

    Supports a literal syntax for validated QValues.

    Supports a literal syntax for validated QValues.

    Example:

    q(0.5).success == QValue.fromDouble(0.5)
    q(1.1) // does not compile: out of range
    val d = 0.5
    q(d) // does not compile: not a literal
    Annotations
    @deprecated
    Deprecated

    (Since version 0.20) use qValue"" string interpolation instead