IntConstantModule

scala.quoted.Quotes.reflectModule.IntConstantModule

Methods of the module object val IntConstant.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant Int value.

Creates a constant Int value.

Value parameters

x

the Int value

Attributes

Returns

an IntConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.IntConstant): Some[Int]

Match Int value constant and extract its value.

Match Int value constant and extract its value.

Value parameters

constant

the IntConstant to match against

Attributes

Returns

Some containing the wrapped Int value

Source
Quotes.scala