o3 0.62.0

shared-nothing primitives
Documentation
use std::array;

use crate::depot::queue::links;

pub mod groups;
mod sealed;

pub use sealed::table::{Error, Occupied, Record, Table, Vacant};

#[repr(C)]
pub struct Node<T, const PLANES: usize> {
    pub value: T,
    pub hooks: [links::Hook; PLANES],
}

impl<T, const PLANES: usize> Node<T, PLANES> {
    pub fn new(index: links::Index, value: T) -> Self {
        Self {
            value,
            hooks: array::from_fn(|_plane| links::Hook::new(index)),
        }
    }
}