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))
}
}