Creates a union codec from the provided array of codec.
The variant codecs of the union.
A function that returns the index of the variant from the provided value.
A function that returns the index of the variant from the byte array.
Creates a union codec from the provided array of codec.