package records

  1. Overview
  2. Docs

Module type Safe.LAYOUTSource

Sourcetype s
Sourceval layout : s layout

A value representing the layout.

Sourceval field : string -> 'a Type.t -> ('a, s) Field.t

Add a field to the layout. This modifies the layout and returns the field.

Sourceval seal : unit -> unit

Make the layout unmodifiable. It is necessary before constructing values.

Sourceval layout_name : string

The name that was given to the layout.

Sourceval layout_id : s Polid.t

The unique identifier given to a layout.

Sourceval make : unit -> s t

Allocate a record of the layout, with all fields initially unset.