ToData

scalus.uplc.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]

Derives a ToData instance for type A

Derives a ToData instance for type A

Attributes

Concrete fields

lazy val sirDeps: List[SIRModuleWithDeps]
lazy val sirModule: Module

Givens

Givens

given bigIntToData: ToData[BigInt]
given given_ToData_Boolean: ToData[Boolean]
given given_ToData_String: ToData[String]
given given_ToData_Unit: ToData[Unit]
given tupleToData[A : ToData, B : ToData]: ToData[(A, B)]

Inherited givens

given eitherToData[A : ToData, B : ToData]: ToData[Either[A, B]]

Attributes

Inherited from:
ToDataOffchainApi (hidden)
given given_ToData_BigInteger: ToData[BigInteger]

Attributes

Inherited from:
ToDataOffchainApi (hidden)
given given_ToData_Byte: ToData[Byte]

Attributes

Inherited from:
ToDataOffchainApi (hidden)
given given_ToData_Int: ToData[Int]

Attributes

Inherited from:
ToDataOffchainApi (hidden)
given given_ToData_Integer: ToData[Integer]

Attributes

Inherited from:
ToDataOffchainApi (hidden)
given given_ToData_Long: ToData[Long]

Attributes

Inherited from:
ToDataOffchainApi (hidden)
given given_ToData_Short: ToData[Short]

Attributes

Inherited from:
ToDataOffchainApi (hidden)

Attributes

Inherited from:
ToDataOffchainApi (hidden)

Extensions

Deprecated extensions

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

Attributes

Deprecated
[Since version 0.13.0] Use Data.toData instead