pub struct ShardedBloom { /* private fields */ }Implementations§
Source§impl ShardedBloom
impl ShardedBloom
pub fn new_for_fp_rate(expected_items: usize, fp_rate: f64) -> Self
pub fn check_and_set(&self, hash: &[u8; 20]) -> bool
pub fn number_of_bits(&self) -> u64
Auto Trait Implementations§
impl !Freeze for ShardedBloom
impl RefUnwindSafe for ShardedBloom
impl Send for ShardedBloom
impl Sync for ShardedBloom
impl Unpin for ShardedBloom
impl UnwindSafe for ShardedBloom
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