#pretty #print

no-std pretty-print

pretty print tree

11 releases

0.1.9 Jun 15, 2023
0.1.8 Jun 15, 2023
0.0.0 Jun 1, 2023

#112 in Value formatting

Download history 204/week @ 2023-06-11 49/week @ 2023-06-18 58/week @ 2023-06-25 97/week @ 2023-07-02 81/week @ 2023-07-09 59/week @ 2023-07-16 32/week @ 2023-07-23 8/week @ 2023-07-30 38/week @ 2023-08-06 35/week @ 2023-08-13 12/week @ 2023-08-20 19/week @ 2023-08-27 39/week @ 2023-09-03 32/week @ 2023-09-10 38/week @ 2023-09-17 20/week @ 2023-09-24

129 downloads per month
Used in 5 crates (2 directly)

MPL-2.0 license

68KB
1.5K SLoC

This crate defines a Wadler-style pretty-printing API.

Start with the static functions of Doc.

Quick start

Let's pretty-print simple sexps! We want to pretty print sexps like

(1 2 3)

or, if the line would be too long, like

((1)
 (2 3)
 (4 5 6))

A simple symbolic expression consists of a numeric atom or a nested ordered list of symbolic expression children.

Dependencies

~545KB