NoneFromExpr

scala.quoted.FromExpr$.NoneFromExpr$
object NoneFromExpr extends FromExpr[None.type]

Default implementation of FromExpr[None]

  • Transform '{None} into Some(None)
  • Otherwise returns None

Attributes

Source
FromExpr.scala
Graph
Supertypes
trait FromExpr[None.type]
class Object
trait Matchable
class Any
Self type

Members list

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.

Attributes

Source
FromExpr.scala