Implement rough symbol interning infra

This commit is contained in:
Lukas Wirth 2024-07-12 12:26:23 +02:00
parent ffbc5ad993
commit 6275eb140e
6 changed files with 543 additions and 1 deletions

View file

@ -20,6 +20,9 @@ type Guard<T> = dashmap::RwLockWriteGuard<
HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>,
>;
mod symbol;
pub use self::symbol::{symbols, Symbol};
pub struct Interned<T: Internable + ?Sized> {
arc: Arc<T>,
}