Skip to main content

Crate o3

Crate o3 

Source
Expand description

§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

Modules§

alloc
base
Values and proofs independent of allocation and resource ownership.
buffer
depot
mem