NamedCodec

dev.hnaderi.namedcodec.NamedCodec
See theNamedCodec companion object
trait NamedCodec[A, R] extends NamedEncoder[A, R] with NamedDecoder[A, R]

Attributes

Companion:
object
Source:
NamedCodec.scala
Graph
Supertypes
trait NamedDecoder[A, R]
trait NamedEncoder[A, R]
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

final def eimap[B](fcon: B => A)(fcov: A => Either[String, B]): NamedCodec[B, R]

Attributes

Source:
NamedCodec.scala
final def imap[B](fcon: B => A)(fcov: A => B): NamedCodec[B, R]

Attributes

Source:
NamedCodec.scala

Inherited methods

Attributes

Inherited from:
NamedDecoder
Source:
NamedCodec.scala
final def contramap[B](f: B => A): NamedEncoder[B, R]

Attributes

Inherited from:
NamedEncoder
Source:
NamedCodec.scala

Attributes

Inherited from:
NamedDecoder
Source:
NamedCodec.scala
def encode(a: A): EncodedMessage[R]

Attributes

Inherited from:
NamedEncoder
Source:
NamedCodec.scala
final def map[B](f: A => B): NamedDecoder[B, R]

Attributes

Inherited from:
NamedDecoder
Source:
NamedCodec.scala