Module Enum_type.Make

Parameters

module X : InputS

Signature

type t = X.t
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val show : t -> Ppx_deriving_runtime.string
val equal : t -> t -> Ppx_deriving_runtime.bool
val min : Ppx_deriving_runtime.int
val max : Ppx_deriving_runtime.int
val to_enum : t -> Ppx_deriving_runtime.int
val of_enum : Ppx_deriving_runtime.int -> t Ppx_deriving_runtime.option
exception EnumOutOfBounds of int
val of_int : int -> t
val next : ?wrap:bool -> ?amount:int -> t -> t
val prev : ?wrap:bool -> ?amount:int -> t -> t
val collect : unit -> t list