An object that can provide a discriminator API for Union using an
unsigned integral Layout instance located either inside or
outside the union.
param layout
initializes {@link
UnionLayoutDiscriminator#layout|layout}. Must satisfy {@link
ExternalLayout#isCount|isCount()}.
param [property]
Default for {@link
UnionDiscriminator#property|property}, superseding the property
from layout, but defaulting to variant if neither property
nor layout provide a property name.
An object that can provide a discriminator API for Union using an unsigned integral Layout instance located either inside or outside the union.
initializes {@link UnionLayoutDiscriminator#layout|layout}. Must satisfy {@link ExternalLayout#isCount|isCount()}.
Default for {@link UnionDiscriminator#property|property}, superseding the property from
layout
, but defaulting tovariant
if neitherproperty
nor layout provide a property name.