Packages

c

com.avsystem.commons.serialization

HasGenCodecFromAU

abstract class HasGenCodecFromAU[AU, T] extends AnyRef

Like HasGenCodec but derives the codec from a separately provided custom object which has appropriate apply and unapply (or unapplySeq) methods implemented. Materialization is done by GenCodec.fromApplyUnapplyProvider macro. The object containing apply and unapply must be specified with object singleton type passed as type parameter AU.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HasGenCodecFromAU
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HasGenCodecFromAU()(implicit applyUnapplyProvider: ValueOf[AU], instances: MacroInstances[Unit, AUCodec[AU, T]])

Value Members

  1. implicit final lazy val codec: GenCodec[T]