o3 0.62.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    base::num::bounded,
    depot::arena::hash::{self, runtime::entry},
};

pub struct Vacant<'a, T, Tag> {
    pub(super) core: &'a mut hash::raw::Core<T, Tag>,
    pub(super) index: bounded::raw::U32<0, { u32::MAX - 1 }>,
}

impl<'a, T, Tag> Vacant<'a, T, Tag> {
    pub fn insert(self, value: T) -> entry::Live<'a, T, Tag, entry::Staged> {
        hash::raw::stage(self, value)
    }
}