Dispatcher

smithy4s.schema.Alt$.Dispatcher
See theDispatcher companion object
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.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

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, _]