o3 0.62.0

shared-nothing primitives
Documentation
//! Fixed-capacity indexed FIFO lanes.

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::raw::Hook,
    pub value: UnsafeCell<mem::MaybeUninit<T>>,
}

impl<T> Value<T> {
    pub fn vacant(index: links::Index) -> Self {
        Self {
            hook: tagged::raw::Hook::new(index),
            value: UnsafeCell::new(mem::MaybeUninit::uninit()),
        }
    }
}