Crate tabulate_rs

Crate tabulate_rs 

Source
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.
TableFormat
Table format definition mirroring the Python implementation.
TabulateOptions
Builder-style configuration for tabulate.

Enums§

Alignment
Text alignment options supported by the tabulator.
FormatSpec
Format specifier for numeric columns.
HeaderAlignment
Header alignment spec, including the python-tabulate “same” sentinel.
Headers
Header specification for the table.
MissingValues
Placeholder values for missing entries.
RowAlignment
Vertical alignment applied when rendering multi-line rows.
ShowIndex
Controls whether an index column is shown.
TabulateError
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_data according to the provided options.
tabulate_formats
Return the list of available table format identifiers.