Expand description
Pretty-print tabular data, ported from the python-tabulate
project.
The crate exposes a single entry point – tabulate – similar to the original Python
implementation. The API is intentionally builder-based to make configuration explicit while
staying close to the reference behaviour.
Structs§
- DataRow
- Row descriptor.
- Line
- Horizontal line descriptor.
- Table
Format - Table format definition mirroring the Python implementation.
- Tabulate
Options - Builder-style configuration for
tabulate.
Enums§
- Alignment
- Text alignment options supported by the tabulator.
- Format
Spec - Format specifier for numeric columns.
- Header
Alignment - Header alignment spec, including the python-tabulate “same” sentinel.
- Headers
- Header specification for the table.
- Missing
Values - Placeholder values for missing entries.
- RowAlignment
- Vertical alignment applied when rendering multi-line rows.
- Show
Index - Controls whether an index column is shown.
- Tabulate
Error - Errors emitted while attempting to render a table.
Constants§
- SEPARATING_
LINE - Sentinel that can be inserted into the data to request a separating line.
Functions§
- simple_
separated_ format - Construct a simple column-separated
TableFormat. - tabulate
- Render
tabular_dataaccording to the providedoptions. - tabulate_
formats - Return the list of available table format identifiers.