Gist.VariantOperating on variants.
type 'v case = 'v productThe type for representing variant cases of a variant of type 'v. The Product.name is the constructor name.
type 'a gist := 'a ttype 'v t = 'v variantThe type for representing variants of type 'v.
v type_name project cases is a variant with type name type_name with deconstructor project and case enumeration cases.
The sum type has specializations for these variants. You should like use that if appropriate in your descriptions, see sums. Consumers of the representation can always generalize with Sum.to_variant which invokes these functions.
of_option represents options of the given representation type as a variant.
val of_either :
?meta:('a, 'b) Stdlib.Either.t Meta.t ->
'a gist ->
'b gist ->
('a, 'b) Stdlib.Either.t variantof_option represents eithers of the given representation type as a variant.