Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Unsafe interface
The Unsafe.declare
function returns a 's layout
, which is only safe when 's
is only instanciated once in this context.
val declare : string -> 's layout
Create a new layout with the given name.
Add a field to a layout. This modifies the layout and returns the field.
val seal : 's layout -> unit
Make the layout unmodifiable. It is necessary before constructing values.
val layout_name : 's layout -> string
Get the name that was given to a layout.