Module Generic.Fmt

Custom formatter key.

The Fun.Generic.pp function consults this key in the metadata of a gist g before printing the value described by the gist. If a formatter is found, the value is formatted using that formatter instead.

This can also be used to indicate that you would not like to print a substructure by formatting nothing with Fmt.ignore.

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

The type for custom formatting formatting functions.

val ignore : 'a t

ignore is a formatter prints nothing.

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