type CellDecoder[A] = Decoder[String, A, DecodeError, codecs.type]

Describes how to decode CSV cells into specific types.

All types A such that there exists an implicit instance of CellDecoder[A] in scope can be decoded from CSV cells.

Note that instances of this type class are rarely used directly - their purpose is to be implicitly assembled into more complex instances of kantan.csv.RowDecoder.

See the companion object for creation and summoning methods.

Source
package.scala
See also

kantan.codecs.Decoder

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CellDecoder
  2. Serializable
  3. AnyRef
  4. 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

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 contramapEncoded[EE](f: (EE) => E): Decoder[EE, D, F, T]
    Definition Classes
    Decoder
  9. def emap[DD](f: (D) => Either[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def filter(f: (D) => Boolean)(implicit t: IsError[F]): Decoder[E, D, F, T]
    Definition Classes
    Decoder
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def flatMap[DD](f: (D) => Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def handleErrorWith(f: (F) => Decoder[E, D, F, T]): Decoder[E, D, F, T]
    Definition Classes
    Decoder
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def leftMap[FF](f: (F) => FF): Decoder[E, D, FF, T]
    Definition Classes
    Decoder
  20. def map[DD](f: (D) => DD): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def orElse[DD >: D](d: Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  25. def product[DD](decoder: Decoder[E, DD, F, T]): Decoder[E, (D, DD), F, T]
    Definition Classes
    Decoder
  26. def recover[DD >: D](pf: PartialFunction[F, DD]): Decoder[E, DD, F, T]
    Definition Classes
    Decoder
  27. def recoverWith[DD >: D, FF >: F](pf: PartialFunction[F, Either[FF, DD]]): Decoder[E, DD, FF, T]
    Definition Classes
    Decoder
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def tag[TT]: Decoder[E, D, F, TT]
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def unsafeDecode(e: E): D
    Definition Classes
    Decoder
    Annotations
    @SuppressWarnings()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. 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): Decoder[E, D, FF, T]
    Definition Classes
    Decoder
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2.0) 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 Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped