This crate formats data as a text table, suitable for printing to the terminal or for inclusion in logs.
The following code prints a two-column table from a vector of strings:
``` let table = table!( "{B^:12:}" => "Food", "{G^:7:}" => "Count"; "Fish", "15", "Pizza", "10", "Tomato", "24" );
let output = table.format(); ```
Output:
(color codes not shown)
+--------------------+
| Food | Count |
+--------------------+
|Fish |15 |
+--------------------+
|Pizza |10 |
+--------------------+
|Tomato |24 |
+--------------------+