pub fn with_capacity(cap: usize) -> Self {
        let capacity = cmp::max(1, cap.next_power_of_two() / BUCKET_SIZE);

        Self {
            buckets: repeat(Bucket::new())
                .take(capacity)
                .collect::<Vec<_>>()
                .into_boxed_slice(),
            len: 0,
            _hasher: PhantomData,
        }
    }
/// Constructs a Cuckoo Filter with a given max capacity
Constructs a Cuckoo Filter with a given max capacity
Constructs a Cuckoo Filter with a given max capacity
pub fn with_capacity(cap: usize) -> Self {
        let capacity = cmp::max(1, cap.next_power_of_two() / BUCKET_SIZE);
        Self {
            buckets: repeat(Bucket::new())
                .take(capacity)
                .collect::<Vec<_>>()
                .into_boxed_slice(),
            len: 0,
            _hasher: PhantomData,
        }
    }
pub fn with_capacity ( cap : usize ) -> Self { let capacity = cmp :: max ( 1 , cap . next_power_of_two ( ) / BUCKET_SIZE ) ; Self { buckets : repeat ( Bucket :: new ( ) ) . take ( capacity ) . collect :: < Vec < _ > > ( ) . into_boxed_slice ( ) , len : 0 , _hasher : PhantomData , } }
Constructs a Cuckoo Filter with a given max capacity
Constructs a Cuckoo Filter with a given max capacity
cap
usize
cap
usize