Trait hirpdag_hashconsing::Table
source · [−]pub trait Table<D, R> where
D: Hash + Eq + Debug,
R: Reference<D>, {
fn get(&self, hash: u64, data: &D) -> Option<R>;
fn get_or_insert<CF>(&mut self, hash: u64, data: D, creation_meta: CF) -> R
where
CF: FnOnce(&mut D);
}