Module output_table

Source
Expand description

Generate tables for human consumption, for the terminal, as HTML or CSV

Modules§

html
terminal
Experimental attempt at a table printing abstraction that can both print to a terminal in nice human-readable format (with spaces for padding, and ANSI sequences for formatting), as well as in CSV (with tabs) format. Does not currently escape anything in the fields, just uses Display and prints that directly. Thus is not safe if the type can print tabs or newlines (or on the terminal even spaces could make it ambiguous).

Structs§

OutputStyle
Abstract styling that works for both terminal and HTML output. color, if given, is a ANSI 256-color terminal color.
OutputTableTitle
WithUrlOnDemand
A text with optional link which is generated only when needed (i.e. for HTML output)

Enums§

BarKind
FontSize
Row
Either something that can have spans; or something that can have URLs. Assumes that never want to have both.

Traits§

CellValue
OutputTable