Module Univ_map.Make

Parameters

module Key : Key
module Data : Data

Signature

type t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
module Key = Key
type 'a data = 'a Data.t
include Base.Invariant.S with type t := t
val invariant : t -> unit
val empty : t
val is_empty : t -> Base.Bool.t
val set : t -> 'a Key.t -> 'a data -> t
val mem : t -> 'a Key.t -> Base.Bool.t
val mem_by_id : t -> Type_equal.Id.Uid.t -> Base.Bool.t
val find : t -> 'a Key.t -> 'a data Base.Option.t
val find_exn : t -> 'a Key.t -> 'a data
val add : t -> 'a Key.t -> 'a data -> [ `Ok of t | `Duplicate ]
val add_exn : t -> 'a Key.t -> 'a data -> t
val change : t -> 'a Key.t -> f:('a data Base.Option.t -> 'a data Base.Option.t) -> t
val change_exn : t -> 'a Key.t -> f:('a data -> 'a data) -> t
val update : t -> 'a Key.t -> f:('a data Base.Option.t -> 'a data) -> t
val remove : t -> 'a Key.t -> t
val remove_by_id : t -> Type_equal.Id.Uid.t -> t
module Packed : sig ... end
val to_alist : t -> Packed.t Base.List.t
val of_alist_exn : Packed.t Base.List.t -> t