package core_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module EnumSource

Sourcemodule type S = sig ... end
Sourcetype 'a t = (module S with type t = 'a)
Sourceval enum : 'a t -> (string * 'a) list
Sourceval to_string_hum : 'a t -> 'a -> string

Map a constructor name to a command-line string: downcase the name and convert _ to -.

Sourceval check_field_name : 'a t -> 'a -> (_, _, _) Core_kernel.Field.t_with_perm -> unit
Sourceval assert_alphabetic_order_exn : Core_kernel.Source_code_position.t -> 'a t -> unit
Sourcetype ('a, 'b) make_param = ?represent_choice_with:string -> ?aliases:string list -> string -> doc:string -> 'a t -> 'b Core_kernel.Command.Param.t
Sourceval make_param_optional_with_default_doc : default:'a -> ('a, 'a) make_param
Sourceval arg_type : 'a t -> 'a Core_kernel.Command.Arg_type.t
Sourceval doc : ?represent_choice_with:string -> 'a t -> doc:string -> string
OCaml

Innovation. Community. Security.