tabled 0.9.0

An easy to use library for pretty print tables of Rust `struct`s and `enum`s.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The example can be run by this command
//! `cargo run --example margin`

use tabled::{Margin, Style, TableIteratorExt};

fn main() {
    let data = vec![["A", "B", "C"], ["D", "E", "F"], ["G", "H", "I"]];

    let table = data
        .table()
        .with(Style::re_structured_text())
        .with(Margin::new(4, 3, 2, 1).set_fill('<', '>', 'v', '^'))
        .to_string();

    println!("{}", table);
}