Creates a union encoder from the provided array of encoder.
The variant encoders of the union.
A function that returns the index of the variant from the provided value.
Creates a union encoder from the provided array of encoder.