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 std::iter::FromIterator;

use tabled::{grid::config::Offset, settings::Reverse, Table};

fn main() {
    let data = [
        ["string", "support", "wood", "station"],
        ["applied", "sense", "use", "shoe"],
        ["shout", "noun", "rear", "crowd"],
        ["coal", "flag", "current", "heading"],
    ];

    let mut table = Table::from_iter(data);
    table.with(Reverse::rows(1).limit(Offset::End(1)));
    table.with(Reverse::columns(0));

    println!("{table}");
}