pub struct BloomPointer<T> { /* private fields */ }Expand description
(Bloom64, Arc<T>) - 16 bytes on 64-bit.
Implementations§
Source§impl<T> BloomPointer<T>
impl<T> BloomPointer<T>
Sourcepub const SIGNATURE: AxisMask
pub const SIGNATURE: AxisMask
Direction signature of BloomPointer<T>. Engages the
K_content_prefix axis (bloom-filter summary of the
target’s keys stored at slot for fast set-membership
rejection before deref).
pub fn new(target: Arc<T>, bloom: Bloom64) -> Self
Sourcepub fn from_keys<K, I>(target: Arc<T>, keys: I) -> Selfwhere
K: Hash,
I: IntoIterator<Item = K>,
pub fn from_keys<K, I>(target: Arc<T>, keys: I) -> Selfwhere
K: Hash,
I: IntoIterator<Item = K>,
Build the bloom from a key iterator. Caller is responsible for
providing the keys (typically by walking target and yielding
owned key copies or references).
pub fn bloom(&self) -> Bloom64
pub fn target(&self) -> &Arc<T> ⓘ
Trait Implementations§
Source§impl<T: Clone> Clone for BloomPointer<T>
impl<T: Clone> Clone for BloomPointer<T>
Source§fn clone(&self) -> BloomPointer<T>
fn clone(&self) -> BloomPointer<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for BloomPointer<T>
impl<T> RefUnwindSafe for BloomPointer<T>where
T: RefUnwindSafe,
impl<T> Send for BloomPointer<T>
impl<T> Sync for BloomPointer<T>
impl<T> Unpin for BloomPointer<T>
impl<T> UnsafeUnpin for BloomPointer<T>
impl<T> UnwindSafe for BloomPointer<T>where
T: RefUnwindSafe,
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