Crates.io | table_print |
lib.rs | table_print |
version | 0.1.0 |
source | src |
created_at | 2021-04-07 09:27:59.484032 |
updated_at | 2021-04-07 09:27:59.484032 |
description | A table library for rust. It can export to plain text, HTML and CSV. |
homepage | |
repository | https://gitlab.com/john_t/tableprint |
max_upload_size | |
id | 380293 |
size | 23,892 |
TablePrint is a small library designed so that you can easily create tables. Some of the notable features include:
You can easily create tables like this:
// Create a table with the headings of "Person", "History Grade" and "Geography Grade"
let table = Table::new(vec!["Person", "History Grade", "Geography Grade"]);
// Add Some Rows
table.add_row(vec!["John", "93", "92"]);
table.add_row(vec!["Anne", "98", "87"])
// Export to plaintext and print.
// 80 for 80 columns.
println!("Here are the grades: \n\n{}", table.get_pretty(80));