pub fn cell_by<F: Fn(&mut String) -> Result>(f: F) -> Cell<impl CellSource>
Create Cell
from closure that call std::write!
macro.
use text_grid::*;
use std::fmt::Write;
let s = String::from("ABC");
let cell_a = cell_by(|w| write!(w, "{}", &s));
let cell_b = cell_by(|w| write!(w, "{}", &s));