package ppx_typed_fields

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
type derived_on
val name : 'a t -> Base.string

The name of the field, e.g. "rgb" from the example above.

val path : 'a t -> Base.string Base.list

The path of a field, e.g. "rgb" from the example above. The list will have multiple elements if the field is a subproduct.

val __ord : 'a t -> Base.int Base.list
module Type_ids : sig ... end
module Packed : sig ... end

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

type creator = {
  1. f : 'a. 'a t -> 'a;
}
val get : 'a t -> derived_on -> 'a
val set : 'a t -> derived_on -> 'a -> derived_on
val create : creator -> derived_on