use tabled::{
settings::{themes::BorderCorrection, Alignment, Span, Style},
Table,
};
fn main() {
let data = [
("0,0", "0,1", "0,2", "0,3", ("0,4", "0,5", "0,6")),
("1,0", "1,1", "1,2", "1,3", ("1,4", "1,5", "1,6")),
("2,0", "2,1", "2,2", "2,3", ("2,4", "2,5", "2,6")),
("3,0", "3,1", "3,2", "3,3", ("3,4", "3,5", "3,6")),
];
let mut table = Table::new(data);
table.with(Style::modern_rounded());
table.modify((0, 0), Span::row(2));
table.modify((0, 1), Span::row(isize::MAX));
table.modify((1, 2), Span::row(-1));
table.modify((2, 3), Span::row(isize::MIN));
table.modify((0, 4), Span::row(0));
table.modify((1, 5), Span::row(0));
table.modify((2, 6), Span::row(0));
table.modify((0, 4), Span::row(1));
table.with(BorderCorrection::span());
table.with(Alignment::center_vertical());
println!("{table}");
}