Module Core_kernel__.Bounded_int_table.With_key

Parameters

Key : sig ... end

Signature

type 'data t = (Key.t'datatable

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.

include sig ... end
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 ‑> (Core_kernel__.Import.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 bin_shape_t : Bin_prot.Shape.t ‑> Bin_prot.Shape.t
val create : num_keys:Core_kernel__.Import.int ‑> 'data t
val of_alist : (Key.t * 'data) Core_kernel__.Import.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) Core_kernel__.Import.list ‑> 'data t