Codec

e.scala.codec.Codec
See theCodec companion trait
object Codec

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Codec.type

Members list

Value members

Concrete methods

def apply[S, T](using codec: Codec[S, T]): Codec[S, T]

Summons an implicit codec

Summons an implicit codec

Type parameters

S

Type of source

T

Type of target

Value parameters

codec

Implicit instance of codec

Attributes

Returns

Provided implicit codec

def of[S, T](using decoder: Decoder[T, S], encoder: Encoder[S, T]): Codec[S, T]

Creates a codec based on an implicit decoder and encoder

Creates a codec based on an implicit decoder and encoder

Type parameters

S

Type of source

T

Type of target

Value parameters

decoder

Implicit instance of decoder

encoder

Implicit instance of encoder

Attributes

Returns

Created codec