pub struct TombstoneStorage<K: Hash + Eq> { /* private fields */ }Expand description
Storage for tombstones (deleted records).
Uses a HashMap for efficient lookups and supports compaction.
Implementations§
Source§impl<K: Hash + Eq> TombstoneStorage<K>
impl<K: Hash + Eq> TombstoneStorage<K>
pub fn new() -> Self
pub fn insert_or_assign(&mut self, key: K, info: TombstoneInfo)
pub fn find(&self, key: &K) -> Option<TombstoneInfo>
pub fn erase(&mut self, key: &K) -> bool
pub fn clear(&mut self)
pub fn iter(&self) -> impl Iterator<Item = (&K, &TombstoneInfo)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<K: Clone + Hash + Eq> Clone for TombstoneStorage<K>
impl<K: Clone + Hash + Eq> Clone for TombstoneStorage<K>
Source§fn clone(&self) -> TombstoneStorage<K>
fn clone(&self) -> TombstoneStorage<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<K> Freeze for TombstoneStorage<K>
impl<K> RefUnwindSafe for TombstoneStorage<K>where
K: RefUnwindSafe,
impl<K> Send for TombstoneStorage<K>where
K: Send,
impl<K> Sync for TombstoneStorage<K>where
K: Sync,
impl<K> Unpin for TombstoneStorage<K>where
K: Unpin,
impl<K> UnwindSafe for TombstoneStorage<K>where
K: UnwindSafe,
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