Skip to main content

Crate nestable

Crate nestable 

Source
Expand description

Rust implementation of a nested table renderer for terminals and fixed font size displays

Modules§

ansi
Provides useful ansi escape sequences which can be used to decorate a table.
styles
The styles modules provides various ways to control how your table’s borders are rendered.

Macros§

attr
Convenience macro to construct Attributes via attr![str, …]
styles
Convenience macro to construct a list of (name, style) pairs.

Structs§

Attributes
Attributes are a pair of strings which turn on and off specific ansi terminal rendering options.
Style
A Style is defined very loosely as 4 named arrays (top, row, sep, bot), each containing 6 strings, the meaning of which is indicated by their correcponding StyleIdx entry.
Table
The Table struct defines the tables contents, styling, attributes and alignment rules.

Enums§

Horizontal
Specifies horizontal alignment options
StyleIdx
Index offsets in style arrays
Vertical
Specifies vertical alignment options