CodecFor

e.scala.codec.CodecFor
trait CodecFor[T, DE[_], EN[_]]

Helper trait creating a e.scala.codec.Codec implementation of a third-party type

Type parameters

DE

Decoder type

EN

Encoder type

T

Target type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode[A](input: T)(using aDecoder: DE[A]): EOr[A]
def encode[A](input: A)(using aEncoder: EN[A]): T

Concrete methods

def makeCodec[A](using aDecoder: DE[A], aEncoder: EN[A]): Codec[A, T]
def makeDecoder[A](using aDecoder: DE[A]): Decoder[T, A]
def makeEncoder[A](using aEncoder: EN[A]): Encoder[A, T]

Givens

Givens

given eDecoder: DE[E]
given eEncoder: EN[E]