Dispatcher

trait Dispatcher[F[_], U]

Construct that does the heavily lifting for encoding union values, by memoising the compilation of the alternatives, dispatching the union instance to the correct pre-compiled encoder, and lift the resulting function into an encoder that works on the union.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def compile[G[_], Result](precompile: Precompiler[F, G])(implicit encoderK: EncoderK[G, Result]): G[U]
def underlying: U => WithValue[F, U, _]