package records

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 's layout
type ('a, 's) field
val declare : string -> 's layout
val field : 's layout -> string -> 'a Type.t -> ('a, 's) field
val field_name : ('a, 's) field -> string
val field_type : ('a, 's) field -> 'a Type.t
val seal : 's layout -> unit
exception ModifyingSealedStruct of string
val layout_name : 's layout -> string
val layout_id : 's layout -> 's Polid.t
type !'s t = {
  1. layout : 's layout;
  2. content : 's;
}
val make : 's layout -> 's t
val get_layout : 'a t -> 'a layout
exception AllocatingUnsealedStruct of string
val get : 's t -> ('a, 's) field -> 'a
val set : 's t -> ('a, 's) field -> 'a -> unit
exception UndefinedField of string
val to_json : 'a t -> Yojson.Basic.json
val of_json : 'a layout -> Yojson.Basic.json -> 'a t
val equal : 'a layout -> 'b layout -> ('a, 'b) Polid.equal
val format : Format.formatter -> 'a t -> unit
OCaml

Innovation. Community. Security.