| 127 | type Shared<T> = Arc<RwLock<T>>; |
| 128 | |
| 129 | pub struct Node { |
| 130 | pub id: CodeId, |
| 131 | pub range: (usize, usize), |
| 132 | content: (String, ContentType), |
| 133 | state: Shared<ContentState>, |
| 134 | sixel_cache: Shared<HashMap<NodeDim, Sixel>>, |
| 135 | } |
| 136 | |
| 137 | impl Node { |
| 138 | pub fn new(id: CodeId, range: (usize, usize), content: &str, kind: ContentType) -> Node { |