ByteConstantModule

scala.quoted.Quotes.reflectModule.ByteConstantModule

Methods of the module object val ByteConstant.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant Byte value.

Creates a constant Byte value.

Value parameters

x

the Byte value

Attributes

Returns

a ByteConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.ByteConstant): Some[Byte]

Match Byte value constant and extract its value.

Match Byte value constant and extract its value.

Value parameters

constant

the ByteConstant to match against

Attributes

Returns

Some containing the wrapped Byte value

Source
Quotes.scala