dkernel 0.0.0

The application platform for your cyberpunk desk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::{HashMap, HashSet};

use deskc_ids::{CardId, FileId};
use dkernel_card::node::NodeId;

use crate::{repository::LogEntry, snapshot::Snapshot};

#[derive(Default)]
pub struct Cards {
    references: HashMap<NodeId, HashSet<NodeId>>,
    pub cards: HashMap<CardId, HashSet<NodeId>>,
}

impl Cards {
    pub fn handle_log_entry(&mut self, snapshot: &Snapshot, log: &LogEntry) {}
}