#table #renders #string #vec-vec-string

minimal_table

A minimal table implementation that renders a Vec<Vec<String>> to a string table

1 unstable release

0.2.0 Nov 14, 2023
0.1.0 Nov 14, 2023

#7 in #renders

MIT license

7KB
123 lines

Minimal Table

A minimal table implementation that renders a Vec<Vec> to a string table.

Examples

use minimal_table::TableRenderer;

let data = vec![
    vec!["Header 1".to_string(), "Header 2".to_string()],
    vec!["Row1".to_string(), "Row1Col2".to_string()],
];
let table = TableRenderer::render(&data);
println!("{}", table);

Contributing

Contributions are welcome but keep in mind, that this should be a minimal library. If you would've expected a full featured amazing table library, please consider using Stanza

License

MIT

No runtime deps