elm_parser/datacell/
CellTrait.rs

1use super::Datacell::DataCell;
2
3pub trait Cell<T> {
4    fn init_cell(id: usize, parent_id: usize, s: T) -> DataCell;
5    fn push_cell(parent: &mut DataCell, id: usize, s: T);
6    fn add_cell(add_to: &mut DataCell, parent_id: usize, id: usize, text: T);
7}