compact_table/
compact_table.rs

1#![cfg_attr(not(feature = "std"), allow(unused_variables))]
2
3use tabled::{settings::style::Style, tables::CompactTable};
4
5fn main() {
6    let data = [
7        ["Debian", "1.1.1.1", "true"],
8        ["Arch", "127.1.1.1", "true"],
9        ["Manjaro", "Arch", "true"],
10        ["Manjaro", "A\nr\nc\nh", "true"],
11    ];
12
13    let table = CompactTable::from(data).with(Style::ascii());
14
15    #[cfg(feature = "std")]
16    println!("{}", table.to_string());
17}