papergrid 0.1.14

Papergrid is a library which provide an paper like table printing
Documentation

Papergrid is a library for generating text-based tables for display

Example

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());