package ppx_typed_fields

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

Module Typed_fields_lib.Singleton1Source

Parameters

module T1 : Base.T1

Signature

Sourcetype ('t1, 'r) t =
  1. | T : ('t1, 't1 T1.t) t
include S1 with type 't1 derived_on = 't1 T1.t and type ('t1, 'r) t := ('t1, 'r) t
Sourcetype 't1 derived_on = 't1 T1.t
Sourceval name : (_, _) t -> Base.string
Sourceval path : (_, _) t -> Base.string Base.list
Sourceval __ord : (_, _) t -> Base.int Base.list
Sourcemodule Type_ids (T : Base.T) : sig ... end

The name of the field, e.g. "rgb" from the example at the top of the page.

Sourcemodule Packed : sig ... end

Packed is useful for making collections of 'a t's with different 'a's.

Sourcetype 't1 creator = {
  1. f : 'a. ('t1, 'a) t -> 'a;
}
Sourceval get : ('t1, 'a) t -> 't1 derived_on -> 'a
Sourceval set : ('t1, 'a) t -> 't1 derived_on -> 'a -> 't1 derived_on
Sourceval create : 't1 creator -> 't1 derived_on