package core_kernel

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

Parameters

module Key : sig ... end

Signature

type 'data t = (Key.t, 'data) Bounded_int_table.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 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 -> (Base.Int.t -> '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 t_of_sexp : (Ppx_sexp_conv_lib.Sexp.t -> 'data) -> Ppx_sexp_conv_lib.Sexp.t -> 'data t
val sexp_of_t : ('data -> Ppx_sexp_conv_lib.Sexp.t) -> 'data t -> Ppx_sexp_conv_lib.Sexp.t
val create : num_keys:Base.Int.t -> 'data t
val of_alist : (Key.t * 'data) Base.List.t -> 'data t 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) Base.List.t -> 'data t
OCaml

Innovation. Community. Security.