Struct scalable_cuckoo_filter::ScalableCuckooFilter [] [src]

pub struct ScalableCuckooFilter<T: ?Sized, H = DefaultHasher, R = DefaultRng> { /* fields omitted */ }

Scalable Cuckoo Filter.

Methods

impl<T: Hash + ?Sized> ScalableCuckooFilter<T>
[src]

[src]

Makes a new ScalableCuckooFilter instance.

This is equivalent to the following expression:

ScalableCuckooFilterBuilder::new()
    .initial_capacity(initial_capacity)
    .false_positive_probability(false_positive_probability)
    .finish()

impl<T: Hash + ?Sized, H: Hasher + Clone, R: Rng> ScalableCuckooFilter<T, H, R>
[src]

[src]

Returns the approximate number of items inserted in this filter.

[src]

Returns true if this filter contains no items, otherwise false.

[src]

Returns the capacity (i.e., the upper bound of acceptable items count) of this filter.

"capacity" is upper bound of the number of items can be inserted into the filter without resizing.

[src]

Returns the number of bits being used for representing this filter.

[src]

Returns true if this filter may contain item, otherwise false.

[src]

Inserts item into this filter.

If the current filter becomes full, it will be expanded automatically.

[src]

Shrinks the capacity of this filter as much as possible.

Trait Implementations

impl<T: Debug + ?Sized, H: Debug, R: Debug> Debug for ScalableCuckooFilter<T, H, R>
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T: ?Sized, H, R> Send for ScalableCuckooFilter<T, H, R> where
    H: Send,
    R: Send,
    T: Send

impl<T: ?Sized, H, R> Sync for ScalableCuckooFilter<T, H, R> where
    H: Sync,
    R: Sync,
    T: Sync