Struct selectors::bloom::BloomStorageBool
source · pub struct BloomStorageBool {
counters: [u8; 512],
}
Expand description
Storage class for a CountingBloomFilter that has 1-bit counters.
Fields§
§counters: [u8; 512]
Trait Implementations§
source§impl BloomStorage for BloomStorageBool
impl BloomStorage for BloomStorageBool
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 BloomStorageBool
impl Clone for BloomStorageBool
Auto Trait Implementations§
impl Freeze for BloomStorageBool
impl RefUnwindSafe for BloomStorageBool
impl Send for BloomStorageBool
impl Sync for BloomStorageBool
impl Unpin for BloomStorageBool
impl UnwindSafe for BloomStorageBool
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