tablers/
to_cell.rs

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