Crates.io | crud-tidy-viewer |
lib.rs | crud-tidy-viewer |
version | 0.1.6 |
source | src |
created_at | 2022-12-31 09:08:21.516212 |
updated_at | 2024-03-19 06:31:38.241329 |
description | CLI generator for your API. Array pretty printer |
homepage | https://github.com/djedi23/crud.rs |
repository | https://github.com/djedi23/crud.rs |
max_upload_size | |
id | 748313 |
size | 64,084 |
Pretty printer for arrays.
Some parts of the code is copied and refactored from Tidy-viewer (released under public domain)
use crud_tidy_viewer::{display_table, TableConfig};
let rdr = vec![
vec!["a".to_string(), "b".to_string()],
vec!["1".to_string(), "b".to_string()],
vec!["4.1453".to_string(), "c".to_string()],
vec!["2.4".to_string(), "f".to_string()],
vec!["5".to_string(), "e".to_string()],
];
display_table(&rdr, TableConfig::default());