Codec

e.scala.codec.Codec
See theCodec companion object
trait Codec[S, T] extends Decoder[T, S], Encoder[S, T]

Typeclass defining decoding and encoding together via e.scala.codec.Decoder and e.scala.codec.Encoder

Type parameters

S

Type of source

T

Type of target

Attributes

Companion
object
Graph
Supertypes
trait Encoder[S, T]
trait Decoder[T, S]
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def decode(input: T): EOr[S]

Decodes an input, possibly failing with E

Decodes an input, possibly failing with E

Value parameters

input

An input

Attributes

Returns

Decoded output or E

See also
Inherited from:
Decoder
def encode(input: S): T

Encodes an input

Encodes an input

Value parameters

input

An input

Attributes

Returns

Encoded output

Inherited from:
Encoder