Papergrid is a library for generating text-based tables for display
Example
use ;
let mut grid = new;
grid.set;
grid.set;
grid.set;
grid.set;
let expected = concat!;
assert_eq!;
Papergrid is a library for generating text-based tables for display
use papergrid::{Grid, Entity, Settings};
let mut grid = Grid::new(2, 2);
grid.set(Entity::Cell(0, 0), Settings::new().text("0-0"));
grid.set(Entity::Cell(0, 1), Settings::new().text("0-1"));
grid.set(Entity::Cell(1, 0), Settings::new().text("1-0"));
grid.set(Entity::Cell(1, 1), Settings::new().text("1-1"));
let expected = concat!(
"+---+---+\n",
"|0-0|0-1|\n",
"+---+---+\n",
"|1-0|1-1|\n",
"+---+---+\n",
);
assert_eq!(expected, grid.to_string());