package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
type !'a embedding = {
  1. pack : 'a -> t;
  2. unpack : t -> 'a option;
  3. set : t -> 'a -> unit;
  4. compatible : t -> bool;
}
val embed : unit -> 'a embedding
val pack : 'a embedding -> 'a -> t
val unpack : 'a embedding -> t -> 'a option
val compatible : 'a embedding -> t -> bool
val set : 'a embedding -> t -> 'a -> unit
OCaml

Innovation. Community. Security.