1 2 3 4 5 6 7 8 9 10 11 12 13 14
use crate::Cell;
pub trait ToCell {
fn to_cell(&self) -> Cell;
}
impl<T> ToCell for T
where
T: std::fmt::Display + std::fmt::Debug,
{
fn to_cell(&self) -> Cell {
Cell::text(self.to_string())
}
}