NoneFromExpr

object NoneFromExpr extends FromExpr[None.type]

Default implementation of FromExpr[None]

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

Value members

Concrete methods

def unapply(x: Expr[None.type])(using Quotes): Option[None.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