EmptyTupleFromExpr

Default implementation of FromExpr[EmptyTuple]

  • Transform '{EmptyTuple} into Some(EmptyTuple)
  • Otherwise returns None
Source:
FromExpr.scala
trait FromExpr[EmptyTuple.type]
class Object
trait Matchable
class Any

Value members

Concrete methods

def unapply(x: Expr[EmptyTuple.type])(using Quotes): Option[EmptyTuple.type]

Return the value of the expression.

Return the value of the expression.

Returns None if the expression does not represent a value or possibly contains side effects. Otherwise returns the Some of the value.

Source:
FromExpr.scala