ToData

scalus.builtin.ToData
object ToData

ToData[A] derivation macros.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ToData.type

Members list

Value members

Concrete methods

inline def deriveCaseClass[T](inline constrIdx: Int): () => T
def deriveCaseClassMacro[T : Type](constrIdx: Expr[Int])(implicit evidence$1: Type[T], Quotes): Expr[() => T]
inline def deriveEnum[T]: () => T

Derive a ToData instance for an enum.

Derive a ToData instance for an enum.

Type parameters

T

the enum type

Attributes

Returns

a ToData instance for T

Extensions

Extensions

extension [A](a: A)
inline def toData: Data