EncoderCompanion

kantan.codecs.EncoderCompanion
trait EncoderCompanion[E, T]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object StringEncoder

Members list

Value members

Concrete methods

def apply[D](implicit ev: Encoder[E, D, T]): Encoder[E, D, T]

Summons an implicit instance of Encoder if one is found, fails compilation otherwise.

Summons an implicit instance of Encoder if one is found, fails compilation otherwise.

This is a slightly faster, less verbose version of implicitly.

Attributes

def from[D](f: D => E): Encoder[E, D, T]

Creates a new instance of Encoder from the specified function.

Creates a new instance of Encoder from the specified function.

Attributes