Struct scalable_cuckoo_filter::ScalableCuckooFilterBuilder [] [src]

pub struct ScalableCuckooFilterBuilder<H = DefaultHasher, R = DefaultRng> { /* fields omitted */ }

Builder for ScalableCuckooFilter.

Methods

impl ScalableCuckooFilterBuilder<DefaultHasher, DefaultRng>
[src]

[src]

Makes a new ScalableCuckooFilterBuilder instance.

impl<H: Hasher + Clone, R: Rng> ScalableCuckooFilterBuilder<H, R>
[src]

[src]

Sets the initial capacity (i.e., the number of estimated maximum items) of this filter.

The default value is 100_000.

[src]

Sets the expected upper bound of the false positive probability of this filter.

The default value is 0.001.

Panics

This method panics if probability is not a non-negative number smaller than or equal to 1.0.

[src]

Sets the number of entries per bucket of this filter.

The default value is 4.

[src]

Sets the maximum number of relocations in an insertion.

If this limit exceeded, the filter will be expanded.

The default value is 512.

[src]

Sets the hasher of this filter.

The default value if DefaultHasher::new().

[src]

Sets the random number generator of this filter.

The default value is rand::thread_rng().

[src]

Builds a ScalableCuckooFilter instance.

Trait Implementations

impl<H: Debug, R: Debug> Debug for ScalableCuckooFilterBuilder<H, R>
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for ScalableCuckooFilterBuilder
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl<H, R> Send for ScalableCuckooFilterBuilder<H, R> where
    H: Send,
    R: Send

impl<H, R> Sync for ScalableCuckooFilterBuilder<H, R> where
    H: Sync,
    R: Sync