Struct object_lib::collections::pcuckoo::PCuckooFilterTable
source · #[repr(C)]struct PCuckooFilterTable {
bits_per_tag: usize,
buf: PVec<FixedPVec<u32>>,
}Fields§
§bits_per_tag: usize§buf: PVec<FixedPVec<u32>>Implementations§
source§impl PCuckooFilterTable
impl PCuckooFilterTable
pub fn new(bits_per_tag: usize) -> Self
pub fn resize_to_capacity(&mut self, capacity: usize)
fn insert_at( &mut self, index: u32, tag: u32, should_kick_out: bool ) -> BucketInsertResult
fn read_tag(&self, index: u32, tag_idx: usize) -> u32
fn write_tag(&mut self, index: u32, tag_idx: usize, value: u32)
fn bucket_contains_tag(&self, index: u32, tag: u32) -> bool
fn delete_tag_from_bucket(&mut self, index: u32, tag: u32) -> bool
Trait Implementations§
source§impl Persistable for PCuckooFilterTable
impl Persistable for PCuckooFilterTable
source§impl PersistentlyAllocatable for PCuckooFilterTable
impl PersistentlyAllocatable for PCuckooFilterTable
fn set_allocator(&mut self, allocator: Arc<RwLock<BumpAllocator>>)
fn get_allocator(&self) -> Option<Arc<RwLock<BumpAllocator>>>
Auto Trait Implementations§
impl !RefUnwindSafe for PCuckooFilterTable
impl Send for PCuckooFilterTable
impl Sync for PCuckooFilterTable
impl Unpin for PCuckooFilterTable
impl !UnwindSafe for PCuckooFilterTable
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