DoubleConstantModule

scala.quoted.Quotes.reflectModule.DoubleConstantModule

Methods of the module object val DoubleConstant.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.DoubleConstant.type

Members list

Value members

Abstract methods

Creates a constant Double value.

Creates a constant Double value.

Value parameters

x

the Double value

Attributes

Returns

a DoubleConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.DoubleConstant): Some[Double]

Match Double value constant and extract its value.

Match Double value constant and extract its value.

Value parameters

constant

the DoubleConstant to match against

Attributes

Returns

Some containing the wrapped Double value

Source
Quotes.scala