Struct pearl::filter::range::RangeFilter
source · pub struct RangeFilter<K>where
for<'a> K: Key<'a>,{ /* private fields */ }
Expand description
Range filter (concurrency supported)
Implementations§
source§impl<K> RangeFilter<K>where
for<'a> K: Key<'a>,
impl<K> RangeFilter<K>where for<'a> K: Key<'a>,
Trait Implementations§
source§impl<K> Clone for RangeFilter<K>where
for<'a> K: Key<'a>,
impl<K> Clone for RangeFilter<K>where for<'a> K: Key<'a>,
source§impl<K> Default for RangeFilter<K>where
for<'a> K: Key<'a> + Default,
impl<K> Default for RangeFilter<K>where for<'a> K: Key<'a> + Default,
source§fn default() -> RangeFilter<K>
fn default() -> RangeFilter<K>
Returns the “default value” for a type. Read more
source§impl<K> FilterTrait<K> for RangeFilter<K>where
for<'a> K: Key<'a>,
impl<K> FilterTrait<K> for RangeFilter<K>where for<'a> K: Key<'a>,
source§fn contains_fast(&self, key: &K) -> FilterResult
fn contains_fast(&self, key: &K) -> FilterResult
Check if key in filter (should be implemented if filter can be checked without waiting)
source§fn checked_add_assign(&mut self, other: &Self) -> bool
fn checked_add_assign(&mut self, other: &Self) -> bool
Add another filter to this filter
source§fn clear_filter(&mut self)
fn clear_filter(&mut self)
Clear all filter data
source§fn contains<'life0, 'life1, 'life2, 'async_trait, P>(
&'life0 self,
_provider: &'life1 P,
key: &'life2 Key
) -> Pin<Box<dyn Future<Output = FilterResult> + Send + 'async_trait>>where
P: 'async_trait + BloomDataProvider,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn contains<'life0, 'life1, 'life2, 'async_trait, P>( &'life0 self, _provider: &'life1 P, key: &'life2 Key ) -> Pin<Box<dyn Future<Output = FilterResult> + Send + 'async_trait>>where P: 'async_trait + BloomDataProvider, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Check if key in filter (can take some time)
source§fn offload_filter(&mut self) -> usize
fn offload_filter(&mut self) -> usize
Offload filter from memory if possible
source§fn memory_allocated(&self) -> usize
fn memory_allocated(&self) -> usize
Memory used by filter
source§fn is_filter_offloaded(&self) -> bool
fn is_filter_offloaded(&self) -> bool
Check if filter was offloaded
Auto Trait Implementations§
impl<K> RefUnwindSafe for RangeFilter<K>
impl<K> Send for RangeFilter<K>
impl<K> Sync for RangeFilter<K>
impl<K> Unpin for RangeFilter<K>where K: Unpin,
impl<K> UnwindSafe for RangeFilter<K>
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