o3 0.22.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::depot::arena::linked::slots;
pub(in crate::buffer::segments) mod cursor;
pub(in crate::buffer::segments) mod iter;

use crate::buffer::{segments, segments::handles::Descriptor};

pub(in crate::buffer::segments) enum State<'a, T> {
    Empty,
    Single(slots::Index, &'a segments::Item<T>),
    Multi(&'a Descriptor),
}

/// The live topology and byte extent borrowed from one nonempty owner.
pub(in crate::buffer::segments) enum Occupied<'a, T> {
    Single(slots::Index, &'a segments::Item<T>),
    Multi(&'a Descriptor),
}