tabled 0.20.0

An easy to use library for pretty print tables of Rust `struct`s and `enum`s.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use tabled::{
    col, row,
    settings::{Alignment, Style},
};

fn main() {
    let mut table = col![
        "row 1",
        "row 2",
        row!["row 3"; 3],
        col!["row 4"; 2].with(Style::ascii_rounded()),
    ];

    table.with(Alignment::center());
    table.with(Style::modern());

    println!("{table}");
}