Module Generic.Fmt

Custom pp function metadata key.

If a gist of field metadata defines a value for this key the Fun.Generic.pp function uses it for printing.

Using a function that prints nothing like Fmt.ignore can also be used to indicate a value or field should not be printed.

type 'a t = Stdlib.Format.formatter -> 'a -> unit

The type for custom pp functions.

val ignore : 'a t

ignore prints nothing.

val mem : ('a, 'b) Type.Gist.Meta.t2 -> bool
val add : (Stdlib.Format.formatter -> 'b -> unit) -> ('a, 'b) Type.Gist.Meta.t2 -> ('a, 'b) Type.Gist.Meta.t2
val find : ('a, 'b) Type.Gist.Meta.t2 -> (Stdlib.Format.formatter -> 'b -> unit) option
val remove : ('a, 'b) Type.Gist.Meta.t2 -> ('a, 'b) Type.Gist.Meta.t2