Module Base.Variant

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

type 'constructor t = {
  1. name : string;
    (*

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

    *)
  2. rank : int;
  3. constructor : 'constructor;
}