pub struct IndexStore { /* private fields */ }Expand description
IndexStore
Architectural Notes:
- Thin persistence wrapper over a stable BTreeMap.
- RawIndexKey and RawIndexEntry are fully validated before insertion.
- Fingerprints are non-authoritative diagnostic witnesses.
- Fingerprints are always stored, but only verified in debug builds.
- This layer does NOT enforce commit/transaction discipline. Higher layers are responsible for write coordination.
- IndexStore intentionally does NOT implement Deref to avoid leaking internal storage representation (StoredIndexValue).
Implementations§
Source§impl IndexStore
impl IndexStore
pub fn init(memory: VirtualMemory<DefaultMemoryImpl>) -> Self
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 Unpin for IndexStore
impl UnsafeUnpin for IndexStore
impl !UnwindSafe 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