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::{builder::Builder, settings::Style};

fn main() {
    let oceans = "Atlantic, Pacific, Indian, Southern, Arctic";

    let mut builder = Builder::default();

    for (i, ocean) in oceans.split(", ").enumerate() {
        builder.push_record([i.to_string(), ocean.to_string()]);
    }

    builder.insert_record(0, ["#", "Ocean"]);

    let mut table = builder.build();
    table.with(Style::markdown().remove_horizontals());

    println!("{table}");
}