Expand description
A pretty-printing library based on Wadler’s “A Prettier Printer” with support for ANSI styling.
Macros§
Structs§
- Display
- A helper struct for rendering
Doc
s to anstd::fmt::Write
. - Doc
- The type of pretty-printed text.
- Style
- A style is a collection of properties that can format a string using ANSI escape codes.
Enums§
- Colour
- A colour is one specific type of ANSI escape code, and can refer to either the foreground or background colour.
Traits§
- Sparkly
- A trait for values that are pretty-printable.