CharConstantModule

scala.quoted.Quotes.reflectModule.CharConstantModule

Methods of the module object val CharConstant.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant Char value.

Creates a constant Char value.

Value parameters

x

the Char value

Attributes

Returns

a CharConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.CharConstant): Some[Char]

Match Char value constant and extract its value.

Match Char value constant and extract its value.

Value parameters

constant

the CharConstant to match against

Attributes

Returns

Some containing the wrapped Char value

Source
Quotes.scala