pub struct IndexStore { /* private fields */ }Expand description
IndexStore
Thin persistence wrapper over one stable BTreeMap.
Invariant: callers provide already-validated RawIndexKey/RawIndexEntry.
Fingerprints are diagnostic witnesses and are debug-verified only.
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