ShortConstantModule

scala.quoted.Quotes.reflectModule.ShortConstantModule

Methods of the module object val Short.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant Short value.

Creates a constant Short value.

Value parameters

x

the Short value

Attributes

Returns

a ShortConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.ShortConstant): Some[Short]

Match Short value constant and extract its value.

Match Short value constant and extract its value.

Value parameters

constant

the ShortConstant to match against

Attributes

Returns

Some containing the wrapped Short value

Source
Quotes.scala