pub struct IndexStore { /* private fields */ }Expand description
IndexStore
Thin persistence wrapper over one stable or heap BTreeMap.
Invariant: callers provide already-validated RawIndexStoreKey/IndexEntryValue.
Implementations§
Source§impl IndexStore
impl IndexStore
pub fn init(memory: VirtualMemory<DefaultMemoryImpl>) -> Self
Sourcepub fn init_journaled(memory: VirtualMemory<DefaultMemoryImpl>) -> Self
pub fn init_journaled(memory: VirtualMemory<DefaultMemoryImpl>) -> Self
Initialize a journaled cached-stable index store.
Normal writes update only the live materialized projection. The canonical stable index is updated by future fold/rebuild paths.
pub fn len(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Sourcepub fn memory_bytes(&self) -> u64
pub fn memory_bytes(&self) -> u64
Sum of bytes used by all stored index entries.
Auto Trait Implementations§
impl !Freeze for IndexStore
impl !RefUnwindSafe for IndexStore
impl !Send for IndexStore
impl !Sync for IndexStore
impl !UnwindSafe for IndexStore
impl Unpin for IndexStore
impl UnsafeUnpin for IndexStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more