Packages

t

kantan.codecs

EncoderCompanion

trait EncoderCompanion[E, T] extends AnyRef

Source
Encoder.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EncoderCompanion
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. macro 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.

  2. 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.

    Annotations
    @inline()