Crate text_grid

Source
Expand description

A library to create formatted plain-text tables.

See to_grid (High Level API) or GridBuilder (Low Level API) for details.

Macros§

cell
Create Cell via runtime expression interpolation, as in format!.
cells_f
Create Cells for float numbers via runtime expression interpolation.

Structs§

Cell
Implementation of RawCell that can specify styles.
CellStyle
Cell`s style.
CellsFormatter
Used to define columns.
ColumnStyle
Column’s style.
DefaultCellsSchema
CellsSchema implementation that use Cells.
GridDeprecated
A builder used to create plain-text table.
GridBuilder
A builder used to create plain-text table.
RowBuilder
A builder used to create row of GridBuilder.

Enums§

HorizontalAlignment
Horizontal alignments for cell’s content.

Traits§

Cells
A data structure that can be formatted into cells.
CellsSchema
Column definitions.
CellsSchemaExt
Extension trait for CellsSchema.
RawCell
A data structure that can be formatted into a cell.

Functions§

cell
Create Cell from Display.
cell_by
Create Cell from closure that call std::write! macro.
cells_f
Create Cells for float numbers from Display.
cells_schema
Create CellsSchema from closure.
to_csv
Generate csv using the columns defined by Cells.
to_csv_with_schema
Generate csv using the columns defined by CellsSchema.
to_grid
Generate a table using the columns defined by Cells.
to_grid_with_schema
Generate a table using the columns defined by CellsSchema.

Derive Macros§

Cells
Derive Cells.