implicit final class ValueCodecEnrichedWithHListSupport[A] extends AnyVal
- Alphabetic
- By Inheritance
- ValueCodecEnrichedWithHListSupport
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def ::[B](codecB: Codec[B]): Codec[::[B, ::[A, HNil]]]
When called on a
Codec[A]
whereA
is not a subytpe ofHList
, creates a new codec that encodes/decodes anHList
ofB :: A :: HNil
.When called on a
Codec[A]
whereA
is not a subytpe ofHList
, creates a new codec that encodes/decodes anHList
ofB :: A :: HNil
. For example,uint8 :: utf8
has type
Codec[Int :: String :: HNil]
. uint8 :: utf8 }}} - def :~>:[B](codecB: Codec[B])(implicit ev: =:=[Unit, B]): Codec[::[A, HNil]]
When called on a
Codec[A]
, returns a new codec that encodes/decodesB :: A :: HNil
.When called on a
Codec[A]
, returns a new codec that encodes/decodesB :: A :: HNil
. HList equivalent of~>
. - final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def >>:~[L <: HList](f: (A) => Codec[L]): Codec[::[A, L]]
Creates a new codec that encodes/decodes an
HList
type ofA :: L
given a functionA => Codec[L]
.Creates a new codec that encodes/decodes an
HList
type ofA :: L
given a functionA => Codec[L]
. This allows later parts of anHList
codec to be dependent on earlier values. Operator alias forflatPrepend
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def flatPrepend[L <: HList](f: (A) => Codec[L]): Codec[::[A, L]]
Creates a new codec that encodes/decodes an
HList
type ofA :: L
given a functionA => Codec[L]
.Creates a new codec that encodes/decodes an
HList
type ofA :: L
given a functionA => Codec[L]
. This allows later parts of anHList
codec to be dependent on earlier values. - def flatZipHList[B](f: (A) => Codec[B]): Codec[::[A, ::[B, HNil]]]
Creates a new codec that encodes/decodes an
HList
type ofA :: B :: HNil
given a functionA => Codec[B]
.Creates a new codec that encodes/decodes an
HList
type ofA :: B :: HNil
given a functionA => Codec[B]
. IfB
is anHList
type, consider usingflatPrepend
instead, which avoids nestedHLists
. This is the directHList
equivalent offlatZip
. - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val self: Codec[A]
- def toString(): String
- Definition Classes
- Any