Module table

Module table 

Source

Enums§

Align
ColWidth
Column-specific width specification.
TableMode
TableStyle
TruncateMode

Functions§

render_table
render_table_csv
Render as CSV. Minimal escaping for quotes and commas/newlines.
render_table_json
Render as JSON array of objects mapping header->value. Not streaming, small tables only.
render_table_markdown
Render as GitHub-flavored Markdown table.
render_table_preset_heavy_cyan_separators
Preset sugar: heavy borders, cyan header, separators on by default.
render_table_preset_minimal_magenta_grey_zebra
Preset sugar: minimal ASCII borders, magenta header, light grey zebra rows.
render_table_with
Advanced renderer allowing per-column alignment and truncation modes.
render_table_with_columns
Render with explicit per-column widths.
render_table_with_opts
Advanced renderer with options: per-column alignment/truncation, zebra stripes, and row separators.
render_table_with_opts_styled
Styled variant: allow optional header foreground color and zebra row background color.
write_table_csv
Write CSV table to a file path. Returns Result for error handling.
write_table_markdown
Write Markdown table to a file path. Returns Result for error handling.