o3 0.29.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
use std::cell::Cell;

/// Optional cardinality storage for an indexed chain.
/// # Safety
/// EMPTY is zero and storage exposes this exact policy's counter, when counted.
pub unsafe trait ChainCount: Copy {
    const EMPTY: Self;
    fn storage(count: &Cell<Self>) -> Option<&Cell<u32>>;
}