kantan.codecs.Decoder
See theDecoder companion trait
object Decoder
Attributes
- Companion
- trait
- Source
- Decoder.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Decoder.type
Members list
Value members
Concrete methods
Creates a new Decoder instance that applies the specified function when decoding.
Creates a new Decoder instance that applies the specified function when decoding.
Attributes
- Source
- Decoder.scala
Turns an unsafe function into a Decoder.
Turns an unsafe function into a Decoder.
The specified function is assumed to throw, and errors will be dealt with properly.
Attributes
- Source
- Decoder.scala
Creates a new decoder using all specified values.
Creates a new decoder using all specified values.
The generated decoder will try each of the specified decoders in turn, and return either the first success or, if none is found, the last failure.
Attributes
- Source
- Decoder.scala
Implicits
Implicits
implicit def decoderFromExported[E, D, F, T](implicit da: DerivedDecoder[E, D, F, T]): Decoder[E, D, F, T]
Attributes
- Source
- Decoder.scala
implicit def eitherDecoder[E, D1, D2, F, T](implicit d1: Decoder[E, D1, F, T], d2: Decoder[E, D2, F, T]): Decoder[E, Either[D1, D2], F, T]
Attributes
- Source
- Decoder.scala
Attributes
- Source
- Decoder.scala
In this article