o3 0.61.0

shared-nothing primitives
Documentation

o3

shared-nothing primitives

base < alloc < mem < depot < buffer

check once

admission -> original borrow

fn select<T>(items: &mut [T], index: usize) -> Option<&mut T> {
    items.get_mut(index)
}

generative brands

matching identity -> exclusive access

zero-sized token

use o3::base::cell::region::Token;

let value = Token::scope(|mut token| {
    let cell = token.bind(1_u64);
    *token.borrow_mut(&cell) = 2;
    cell.into_inner()
});

credits

GhostCell — branded cell design

inq, 2026