zhiburt / tabled

An easy to use library for pretty print tables of Rust structs and enums.
MIT License
2.01k stars 84 forks source link

Create a iterative interface to `CompactTable` #388

Open zhiburt opened 10 months ago

zhiburt commented 10 months ago

I am quite exited about this simple idea.

Point being to not have any intermediaries.

Something like

let table = /*table config*/;
let table = TableRender::from(table);

table.render(["asd", "asd", "asdds"]);
table.render(["asd", "asd", "asdds"]);
table.render(["asd", "asd", "asdds"]);

for _ in 0 .. 10 {
   table.render(["asd", "asd", "asdds"]);
}

Yes need to think about interface but still...