implicit classFrom[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.
This member is added by an implicit conversion from From[L, A, M] to
StringAdd performed by method any2stringadd in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from From[L, A, M] to
StringFormat performed by method any2stringfmt in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from From[L, A, M] to
ArrowAssoc[From[L, A, M]] performed by method any2ArrowAssoc in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
This member is added by an implicit conversion from From[L, A, M] to
Ensuring[From[L, A, M]] performed by method any2Ensuring in scala.Predef.
Shadowing
This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error. To access this member you can use a type ascription:
(from: Ensuring[From[L, A, M]]).x
Definition Classes
Ensuring
Annotations
@deprecated
Deprecated
(Since version 2.10.0) Use resultOfEnsuring instead
Builds a
Codec[M]
using the supplied functionM => A
. The returned codec uses the originalCodec[L]
for encoding and decoding. When encoding, it computes anA
value using the supplied function and inserts the computedA
in to theHList M
, yielding anHList L
. ThatHList L
is then encoded using the original codec.