package core_kernel

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

We export the unit test arg rather than instantiate the functor inside result.ml in order to avoid circular dependencies. The functor is instantiated in stable.ml.

type t
include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (Base.Int.t -> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_shape_t : Bin_prot.Shape.t
val equal : t -> t -> Base.Bool.t

tests is a list of (value, sexp-representation, bin-io-representation) triples. The unit tests check that the type properly serializes and de-serializes according to the given representations.

OCaml

Innovation. Community. Security.