type CellCodec[A] = Codec[String, A, DecodeError, codecs.type]

Aggregates a CellEncoder and a CellDecoder.

The sole purpose of this type class is to provide a convenient way to create encoders and decoders. It should not be used directly for anything but instance creation - in particular, it should never be used in a context bound or expected as an implicit parameter.

Source
package.scala
See also

kantan.codecs.Codec

Linear Supertypes
Encoder[String, A, codecs.type], Decoder[String, A, DecodeError, codecs.type], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CellCodec
  2. Encoder
  3. Decoder
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def decode(e: E): Either[F, D]
    Definition Classes
    Decoder
  2. abstract def encode(d: D): E
    Definition Classes
    Encoder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[FF, DD](f: (Either[F, D]) => Either[FF, DD]): Decoder[E, DD, FF, T]
    Definition Classes
    Decoder
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def collect[DD](f: PartialFunction[D, DD])(implicit t: IsError[F]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  8. def contramap[DD](f: (DD) => D): Encoder[E, DD, T]
    Definition Classes
    Encoder
  9. def contramapEncoded[EE](f: (EE) => E): Decoder[EE, D, F, T]
    Definition Classes
    Decoder
  10. def emap[DD](f: (D) => Either[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def filter(f: (D) => Boolean)(implicit t: IsError[F]): Decoder[E, D, F, T]
    Definition Classes
    Decoder
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def flatMap[DD](f: (D) => Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def handleErrorWith(f: (F) => Decoder[E, D, F, T]): Decoder[E, D, F, T]
    Definition Classes
    Decoder
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def imap[DD](f: (D) => DD)(g: (DD) => D): Codec[E, DD, F, T]
    Definition Classes
    Codec
  20. def imapEncoded[EE](f: (E) => EE)(g: (EE) => E): Codec[EE, D, F, T]
    Definition Classes
    Codec
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def leftMap[FF](f: (F) => FF): Codec[E, D, FF, T]
    Definition Classes
    Codec → Decoder
  23. def map[DD](f: (D) => DD): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  24. def mapEncoded[EE](f: (E) => EE): Encoder[EE, D, T]
    Definition Classes
    Encoder
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def orElse[DD >: D](d: Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  29. def product[DD](decoder: Decoder[E, DD, F, T]): Decoder[E, (D, DD), F, T]
    Definition Classes
    Decoder
  30. def recover[DD >: D](pf: PartialFunction[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  31. def recoverWith[DD >: D, FF >: F](pf: PartialFunction[F, Either[FF, DD]]): Decoder[E, DD, FF, T]
    Definition Classes
    Decoder
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def tag[TT]: Codec[E, D, F, TT]
    Definition Classes
    Codec → Encoder → Decoder
    Annotations
    @SuppressWarnings()
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def unsafeDecode(e: E): D
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def mapError[FF](f: (F) => FF): Codec[E, D, FF, T]
    Definition Classes
    Codec → Decoder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.1) Use leftMap instead

  2. def mapResult[DD](f: (D) => Either[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.0) Use emap instead

Inherited from Encoder[String, A, codecs.type]

Inherited from Decoder[String, A, DecodeError, codecs.type]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped