Crate sparkly [] [src]

A pretty-printing library based on Wadler's "A Prettier Printer" with support for ANSI styling.

Structs

Display

A helper struct for rendering Docs to an std::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.