Crates.io | format_table |
lib.rs | format_table |
version | 0.1.1 |
source | src |
created_at | 2023-05-17 11:02:02.413795 |
updated_at | 2023-05-17 11:06:55.370221 |
description | Format tables with a stupid API |
homepage | |
repository | https://git.deuxfleurs.fr/Deuxfleurs/garage |
max_upload_size | |
id | 866859 |
size | 2,884 |
format_table
Format tables with a stupid API. Documentation.
Example:
let mut table = vec!["product\tquantity\tprice".to_string()];
for (p, q, r) in [("tomato", 12, 15), ("potato", 10, 20), ("rice", 5, 12)] {
table.push(format!("{}\t{}\t{}", p, q, r));
}
format_table::format_table(table);