ToData

scalus.builtin.ToData
See theToData companion trait
object ToData

ToData[A] derivation macros.

Attributes

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

Members list

Value members

Concrete methods

inline def derived[A]: ToData[A]

Deprecated methods

inline def deriveCaseClass[T](inline constrIdx: Int): ToData[T]

Attributes

Deprecated
true
inline def deriveEnum[T]: ToData[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

Deprecated
true

Givens

Givens

given bigIntToData: ToData[BigInt]
given eitherToData[A : ToData, B : ToData]: ToData[Either[A, B]]
given given_ToData_Boolean: ToData[Boolean]
given given_ToData_Int: ToData[Int]
given given_ToData_Long: ToData[Long]
given given_ToData_String: ToData[String]
given given_ToData_Unit: ToData[Unit]
given tupleToData[A : ToData, B : ToData]: ToData[(A, B)]

Extensions

Extensions

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