[−][src]Struct dakv_cuckoo::CuckooFilter
Implementations
impl CuckooFilter
[src]
pub fn new(max_num_keys: u64) -> Self
[src]
Example
use dakv_cuckoo::CuckooFilter; let cuckoo = CuckooFilter::new(100);
pub fn with_capacity(capacity: usize) -> Self
[src]
Example
use dakv_cuckoo::CuckooFilter; let cuckoo = CuckooFilter::with_capacity(100);
pub fn add(&mut self, item: &[u8]) -> Result<(), CuckooError>
[src]
Example
use dakv_cuckoo::CuckooFilter; let mut cf = CuckooFilter::default(); cf.add(b"test");
pub fn contains(&self, data: &[u8]) -> bool
[src]
Example
use dakv_cuckoo::CuckooFilter; let mut cf = CuckooFilter::default(); cf.add(b"test"); assert!(cf.contains(b"test"));
pub fn delete(&mut self, data: &[u8]) -> bool
[src]
Example
use dakv_cuckoo::CuckooFilter; let mut cf = CuckooFilter::default(); cf.add(b"test"); assert!(cf.delete(b"test"));
pub fn size(&self) -> usize
[src]
Example
use dakv_cuckoo::CuckooFilter; let cuckoo = CuckooFilter::default(); println!("size: {}", cuckoo.size());
Trait Implementations
impl Default for CuckooFilter
[src]
Auto Trait Implementations
impl RefUnwindSafe for CuckooFilter
impl Send for CuckooFilter
impl Sync for CuckooFilter
impl Unpin for CuckooFilter
impl UnwindSafe for CuckooFilter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,