pub struct AtomicSplitBlockBloom { /* private fields */ }Expand description
A SplitBlockBloom that many threads insert into at once. An atomic
insert costs several times a plain one, so a filter only one thread fills
is better built as a SplitBlockBloom.
Implementations§
Source§impl AtomicSplitBlockBloom
impl AtomicSplitBlockBloom
pub fn insert_many(&self, hashes: &[u64])
Sourcepub fn into_inner(self) -> SplitBlockBloom
pub fn into_inner(self) -> SplitBlockBloom
The filter, once no thread inserts anymore.
Trait Implementations§
Source§impl From<SplitBlockBloom> for AtomicSplitBlockBloom
impl From<SplitBlockBloom> for AtomicSplitBlockBloom
Source§fn from(bloom: SplitBlockBloom) -> Self
fn from(bloom: SplitBlockBloom) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AtomicSplitBlockBloom
impl RefUnwindSafe for AtomicSplitBlockBloom
impl Send for AtomicSplitBlockBloom
impl Sync for AtomicSplitBlockBloom
impl Unpin for AtomicSplitBlockBloom
impl UnsafeUnpin for AtomicSplitBlockBloom
impl UnwindSafe for AtomicSplitBlockBloom
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more