pub struct DeletionManager { /* private fields */ }Expand description
Multiset deletion manager
Implementations§
Source§impl DeletionManager
impl DeletionManager
Sourcepub fn add_instance(&mut self, fingerprint: u64, slot: usize)
pub fn add_instance(&mut self, fingerprint: u64, slot: usize)
Add an instance of a fingerprint
Sourcepub fn remove_instance(
&mut self,
fingerprint: u64,
slot: usize,
) -> MapletResult<bool>
pub fn remove_instance( &mut self, fingerprint: u64, slot: usize, ) -> MapletResult<bool>
Sourcepub fn instance_count(&self, fingerprint: u64) -> usize
pub fn instance_count(&self, fingerprint: u64) -> usize
Get the number of instances for a fingerprint
Sourcepub fn has_instances(&self, fingerprint: u64) -> bool
pub fn has_instances(&self, fingerprint: u64) -> bool
Check if a fingerprint has any instances
Sourcepub fn get_slot_fingerprints(&self, slot: usize) -> Vec<u64>
pub fn get_slot_fingerprints(&self, slot: usize) -> Vec<u64>
Get all fingerprints for a slot
Trait Implementations§
Source§impl Clone for DeletionManager
impl Clone for DeletionManager
Source§fn clone(&self) -> DeletionManager
fn clone(&self) -> DeletionManager
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 moreSource§impl Debug for DeletionManager
impl Debug for DeletionManager
Auto Trait Implementations§
impl Freeze for DeletionManager
impl RefUnwindSafe for DeletionManager
impl Send for DeletionManager
impl Sync for DeletionManager
impl Unpin for DeletionManager
impl UnwindSafe for DeletionManager
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