LongConstantModule

scala.quoted.Quotes.reflectModule.LongConstantModule

Methods of the module object val LongConstant.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant Long value.

Creates a constant Long value.

Value parameters

x

the Long value

Attributes

Returns

a LongConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.LongConstant): Some[Long]

Match Long value constant and extract its value.

Match Long value constant and extract its value.

Value parameters

constant

the LongConstant to match against

Attributes

Returns

Some containing the wrapped Long value

Source
Quotes.scala