FloatConstantModule

scala.quoted.Quotes.reflectModule.FloatConstantModule

Methods of the module object val FloatConstant.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant Float value.

Creates a constant Float value.

Value parameters

x

the Float value

Attributes

Returns

a FloatConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.FloatConstant): Some[Float]

Match Float value constant and extract its value.

Match Float value constant and extract its value.

Value parameters

constant

the FloatConstant to match against

Attributes

Returns

Some containing the wrapped Float value

Source
Quotes.scala