object Type
Methods to interact with the current Type[T]
in scope
- Companion
- class
- Source
- Type.scala
Value members
Concrete methods
Show a source code like representation of this type without syntax highlight
Show a source code like representation of this type without syntax highlight
- Source
- Type.scala
Extracts the value of singleton constant type, None otherwise.
Extracts the value of singleton constant type, None otherwise.
Example usage:
... match
case '{ $mirrorExpr : Mirror.Sum { type MirroredLabel = label } } =>
Type.valueOfConstant[label] // Option[String]
}
- Source
- Type.scala
Givens
Givens
@compileTimeOnly("Reference to `scala.quoted.Type.of` was not handled by PickleQuotes")
given of
Return a quoted.Type with the given type
Return a quoted.Type with the given type
- Source
- Type.scala