package stdune

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

A functor to create a new ID generator module.

Parameters

Signature

type t
include Comparable_intf.S with type key := t
module Map : sig ... end
module Set : sig ... end
module Table : Hashtbl.S with type key = t
val gen : unit -> t

Generate a new id.

val peek : unit -> t

Get the next id that would be generated, without actually generating it.

val to_int : t -> int

Convert the id to an integer.

val compare : t -> t -> Ordering.t

Compare two ids.

val equal : t -> t -> bool
val hash : t -> int
val to_dyn : t -> Dyn.t