use std::{cell::UnsafeCell, mem};
use crate::depot::queue::{links, tagged};
pub use table::{Table, node::Node};
pub mod entry;
pub mod runtime;
mod table;
pub struct Value<T> {
pub hook: tagged::Hook,
pub value: UnsafeCell<mem::MaybeUninit<T>>,
}
impl<T> Value<T> {
pub fn vacant(index: links::Index) -> Self {
Self {
hook: tagged::Hook::new(index),
value: UnsafeCell::new(mem::MaybeUninit::uninit()),
}
}
}