Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Represents a pair of characters (e.g. parentheses).
indented ~indent_count element
produces a new element that will be indented indent_count
times when formatting it. Returns None
if indent_count
is negative.
indented_exn ~indent_count element
produces a new element that will be indented indent_count
times when formatting it. Raises Invalid_arg
if indent_count
is negative.
parenthesized ~pair ?condition element
produces a new element that will be surrounded by a pair
when formatting it. A condition
can be optionally provided that will leave the element as-is if it is not met.
intercalated ~separating elements
produces a new element where the separating
list of tokens is intercalated between the elements
.
sequence ~pair elements
produces a new element where the elements
are separated by a comma (and a space) and surrounded by pair
.
lines elements
produces a new element that intersperses a line break between elements
when formatting it, WITHOUT a trailing newline.
val format : ?stylizer:Formatting.Stylizer.t -> t -> string
format ~stylizer element
renders the element
into a string using the stylizer
.