Creates a union decoder from the provided array of decoder.
The variant decoders of the union.
A function that returns the index of the variant from the byte array.
Creates a union decoder from the provided array of decoder.