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
- Alphabetic
- By Inheritance
Inherited
- CellDecoder
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def decode(e: E): Either[F, D]
- Definition Classes
- Decoder
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[FF, DD](f: (Either[F, D]) => Either[FF, DD]): Decoder[E, DD, FF, T]
- Definition Classes
- Decoder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def collect[DD](f: PartialFunction[D, DD])(implicit t: IsError[F]): Decoder[E, DD, F, T]
- Definition Classes
- Decoder
- Annotations
- @SuppressWarnings()
- def contramapEncoded[EE](f: (EE) => E): Decoder[EE, D, F, T]
- Definition Classes
- Decoder
- def emap[DD](f: (D) => Either[F, DD]): Decoder[E, DD, F, T]
- Definition Classes
- Decoder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter(f: (D) => Boolean)(implicit t: IsError[F]): Decoder[E, D, F, T]
- Definition Classes
- Decoder
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[DD](f: (D) => Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
- Definition Classes
- Decoder
- Annotations
- @SuppressWarnings()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def handleErrorWith(f: (F) => Decoder[E, D, F, T]): Decoder[E, D, F, T]
- Definition Classes
- Decoder
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leftMap[FF](f: (F) => FF): Decoder[E, D, FF, T]
- Definition Classes
- Decoder
- def map[DD](f: (D) => DD): Decoder[E, DD, F, T]
- Definition Classes
- Decoder
- 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()
- def orElse[DD >: D](d: Decoder[E, DD, F, T]): Decoder[E, DD, F, T]
- Definition Classes
- Decoder
- def product[DD](decoder: Decoder[E, DD, F, T]): Decoder[E, (D, DD), F, T]
- Definition Classes
- Decoder
- def recover[DD >: D](pf: PartialFunction[F, DD]): Decoder[E, DD, F, T]
- Definition Classes
- Decoder
- def recoverWith[DD >: D, FF >: F](pf: PartialFunction[F, Either[FF, DD]]): Decoder[E, DD, FF, T]
- Definition Classes
- Decoder
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tag[TT]: Decoder[E, D, F, TT]
- Definition Classes
- Decoder
- Annotations
- @SuppressWarnings()
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeDecode(e: E): D
- Definition Classes
- Decoder
- Annotations
- @SuppressWarnings()
- 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
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- 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
- 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