module Univ: Univmodule Constr:sig..end
Constr.t represents a single constructor in the extensible variant type.
type t
val constr_name : t -> stringval create : 'a Constr.t -> 'a -> tval does_match : t -> 'a Constr.t -> booldoes_match t constr returns true iff t was created by create constr v.val match_ : t -> 'a Constr.t -> 'a optionmatch_ t constr returns Some v if t was created by create constr v, and
returns None otherwise.
match_exn t constr returns v if t was created by create constr v, and raises
otherwise.
val match_exn : t -> 'a Constr.t -> 'aval sexp_of_t : t -> Sexplib.Sexp.tdoes_match t constr returns true iff t was created by create constr v.match_ t constr returns Some v if t was created by create constr v, and
returns None otherwise.
match_exn t constr returns v if t was created by create constr v, and raises
otherwise.