Module Base.Variant

First-class representative of an individual variant in a variant type, used in [@@deriving_inline variants][@@@end].

type 'constructor t = {
name : string;

The position of the constructor in the type definition, starting from 0

rank : int;
constructor : 'constructor;
}