package base

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

Module Base.FieldSource

OCaml record field.

Sourcetype ('perm, 'record, 'field) t_with_perm =
  1. | Field of ('perm, 'record, 'field) For_generated_code.t

'record is the type of the record. 'field is the type of the values stored in the record field with name name. 'perm is a way of restricting the operations that can be used.

Sourcetype ('record, 'field) t = ([ `Read | `Set_and_create ], 'record, 'field) t_with_perm

A record field with no restrictions.

Sourcetype ('record, 'field) readonly_t = ([ `Read ], 'record, 'field) t_with_perm

A record that can only be read, because it belongs to a private type.

Sourceval name : (_, _, _) t_with_perm -> string
Sourceval get : (_, 'r, 'a) t_with_perm -> 'r -> 'a
Sourceval fset : ([> `Set_and_create ], 'r, 'a) t_with_perm -> 'r -> 'a -> 'r
Sourceval setter : ([> `Set_and_create ], 'r, 'a) t_with_perm -> ('r -> 'a -> unit) option
Sourceval map : ([> `Set_and_create ], 'r, 'a) t_with_perm -> 'r -> f:('a -> 'a) -> 'r
Sourceval updater : ([> `Set_and_create ], 'r, 'a) t_with_perm -> ('r -> f:('a -> 'a) -> unit) option
Sourcetype ('perm, 'record, 'result) user = {
  1. f : 'field. ('perm, 'record, 'field) t_with_perm -> 'result;
}
OCaml

Innovation. Community. Security.