implicit class From[L <: HList, A, M <: HList] extends AnyRef
Builds a Codec[M]
using the supplied function M => A
. The returned codec uses the original
Codec[L]
for encoding and decoding. When encoding, it computes an A
value using the supplied
function and inserts the computed A
in to the HList M
, yielding an HList L
. That HList L
is then encoded using the original codec.
- Alphabetic
- By Inheritance
- From
- AnyRef
- Any
- by ValueEnrichedWithTuplingSupport
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new From(aux: DeriveHListElementAux[L, A])(implicit remove: Aux[L, A, M])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (From[L, A, M], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val a: From[L, A, M]
- Implicit
- This member is added by an implicit conversion from From[L, A, M] toValueEnrichedWithTuplingSupport[From[L, A, M]] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- Definition Classes
- ValueEnrichedWithTuplingSupport
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val aux: DeriveHListElementAux[L, A]
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- def ensuring(cond: (From[L, A, M]) ⇒ Boolean, msg: ⇒ Any): From[L, A, M]
- def ensuring(cond: (From[L, A, M]) ⇒ Boolean): From[L, A, M]
- def ensuring(cond: Boolean, msg: ⇒ Any): From[L, A, M]
- def ensuring(cond: Boolean): From[L, A, M]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- def from(f: (M) ⇒ A): Codec[M]
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])
- def ~[B](b: B): (From[L, A, M], B)
- Implicit
- This member is added by an implicit conversion from From[L, A, M] toValueEnrichedWithTuplingSupport[From[L, A, M]] performed by method ValueEnrichedWithTuplingSupport in scodec.codecs.
- Definition Classes
- ValueEnrichedWithTuplingSupport
- def →[B](y: B): (From[L, A, M], B)