package stdune

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

Id provides identifiers for types, and the ability to test (via Id.same) at runtime if two identifiers are equal, and if so to get a proof of equality of their types.

type 'a t
val create : unit -> 'a t
val hash : _ t -> int
val equal : _ t -> _ t -> bool
val same : 'a t -> 'b t -> ('a, 'b) t option