pipecircuit 0.0.4

Correct. Robust. Fast. Portable.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::{SlotSet, StableSlot};

impl SlotSet {
    pub fn empty() -> Self {
        Self(roaring::RoaringBitmap::new())
    }

    pub fn one(slot: StableSlot) -> Self {
        let mut slots = roaring::RoaringBitmap::new();
        slots.insert(slot.value());
        Self(slots)
    }

    pub(in crate::storage::warp_table::secondary_index) fn from_lsb0_bytes(bytes: &[u8]) -> Self {
        Self(roaring::RoaringBitmap::from_lsb0_bytes(0, bytes))
    }
}