kitty_table

Crates.iokitty_table
lib.rskitty_table
version1.1.0
sourcesrc
created_at2024-09-13 06:01:09.675085
updated_at2024-09-14 21:44:38.48707
descriptionVery small and barebones library for printing tables of data.
homepage
repositoryhttps://codeberg.org/AshliKatt/kitty_table
max_upload_size
id1373387
size34,973
Ashli Katt (ashlikatt)

documentation

README

Kitty Table

This tiny library adds methods for printing organized tables of information for debugging.

Formatter

To begin printing tables, a TableFormatter should be created either using new or from_style. The former will create a new formatter from scratch, allowing you to supply an array of [Column]s which dictate how the table will be printed. The latter will automatically fill in the table's style information if your data implements DefaultTableStyle.

Printing

To actually print results using a created TableFormatter, write, debug_write, print, and debug_print may be used. They require a collection of data that implements either DisplayTableRow or DebugTableRow to work.

Notes

DebugTableRow and DefaultTableStyle may be derived— see their documentation for more information about requirements, and about types they are automatically implemented on.

Further explanation

The examples folder shows off a few practical, annotated examples of tables being created. It may be beneficial to check them out!

Commit count: 0

cargo fmt