mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -05:00
more doc
This commit is contained in:
parent
785932861b
commit
c1d980048d
1 changed files with 5 additions and 0 deletions
|
|
@ -118,6 +118,11 @@ module Ext : sig
|
||||||
pre: Out.t -> 'a -> unit; (** Printed before the wrapped value. *)
|
pre: Out.t -> 'a -> unit; (** Printed before the wrapped value. *)
|
||||||
post: Out.t -> 'a -> unit; (** Printed after the wrapped value. *)
|
post: Out.t -> 'a -> unit; (** Printed after the wrapped value. *)
|
||||||
}
|
}
|
||||||
|
(** An extension is a custom document node. It takes a value of type ['a],
|
||||||
|
and a document [d], and can output what it wants based
|
||||||
|
on the custom value before and after [d] is printed.
|
||||||
|
|
||||||
|
The extension is considered to have width [0]. *)
|
||||||
end
|
end
|
||||||
|
|
||||||
val ext : 'a Ext.t -> 'a -> t -> t
|
val ext : 'a Ext.t -> 'a -> t -> t
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue