Expand description
Helper functions for writing pretty-printers.
Structs§
- D
- A wrapper around RcDoc with new methods and a shorter name.
Traits§
- ToDoc
- A type that can be pretty-printed.
Functions§
- binop
- Creates a binary operator applied to two arguments.
- hardline
- Creates a hard line break (always a newline).
- intersperse
- Intersperses documents with the given separator.
- s
- Creates a soft line break (becomes a space when grouped).
- t
- Creates a text doc.
- tuple
- Creates a tuple in [fnotation]: (
[x, y, z, ...]). - unop
- Creates a unary operator applied to one argument in [fnotation].