Struct selectors::bloom::BloomStorageU8
source · pub struct BloomStorageU8 {
counters: [u8; 4096],
}
Expand description
Storage class for a CountingBloomFilter that has 8-bit counters.
Fields§
§counters: [u8; 4096]
Trait Implementations§
source§impl BloomStorage for BloomStorageU8
impl BloomStorage for BloomStorageU8
fn adjust_slot(&mut self, index: usize, increment: bool)
fn slot_is_empty(&self, index: usize) -> bool
fn is_zeroed(&self) -> bool
fn first_slot_is_empty(&self, hash: u32) -> bool
fn second_slot_is_empty(&self, hash: u32) -> bool
fn adjust_first_slot(&mut self, hash: u32, increment: bool)
fn adjust_second_slot(&mut self, hash: u32, increment: bool)
fn first_slot_index(hash: u32) -> usize
fn second_slot_index(hash: u32) -> usize
source§impl Clone for BloomStorageU8
impl Clone for BloomStorageU8
Auto Trait Implementations§
impl Freeze for BloomStorageU8
impl RefUnwindSafe for BloomStorageU8
impl Send for BloomStorageU8
impl Sync for BloomStorageU8
impl Unpin for BloomStorageU8
impl UnwindSafe for BloomStorageU8
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)