Up

Module With_key (Key : sig .. end)

Parameters

Key : sig .. end

Signature

type 'data t = (Key.t, 'data) table

Serialization of a bounded int table using bin_io or sexp preserves num_keys, but only takes space proportional to the length of the table.

val t_of_sexp : (Sexplib.Sexp.t -> 'data) -> Sexplib.Sexp.t -> 'data t
val sexp_of_t : ('data -> Sexplib.Sexp.t) -> 'data t -> Sexplib.Sexp.t
val bin_t : 'data Bin_prot.Type_class.t -> 'data t Bin_prot.Type_class.t
val bin_read_t : 'data Bin_prot.Read.reader -> 'data t Bin_prot.Read.reader
val __bin_read_t__ : 'data Bin_prot.Read.reader -> (int -> 'data t) Bin_prot.Read.reader
val bin_reader_t : 'data Bin_prot.Type_class.reader -> 'data t Bin_prot.Type_class.reader
val bin_size_t : 'data Bin_prot.Size.sizer -> 'data t Bin_prot.Size.sizer
val bin_write_t : 'data Bin_prot.Write.writer -> 'data t Bin_prot.Write.writer
val bin_writer_t : 'data Bin_prot.Type_class.writer -> 'data t Bin_prot.Type_class.writer
val create : num_keys:int -> 'data t
val of_alist : (Key.t * 'data) list -> 'data t Core_kernel.Or_error.t

of_alist returns a table whose maximum allowed key is the maximum key in the input list.

val of_alist_exn : (Key.t * 'data) list -> 'data t