use crate::prelude::{Cell, CellContext};
use std::rc::Rc;
pub trait TreeNode<C> {
fn render_cell(&self, ctx: CellContext<'_, C>) -> Cell;
fn children(&self) -> Vec<Rc<dyn TreeNode<C>>>;
}
pub trait TreeTableModel<C> {
fn children(&self) -> Vec<Rc<dyn TreeNode<C>>>;
}