Dispatcher

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

Value members

Abstract methods

def compile[G[_], Result](precompile: Precompiler[G])(implicit encoderK: EncoderK[G, Result]): G[U]
def ordinal(u: U): Int