[−][src]Trait bucket_vec::BucketVecConfig
Basic configs of a bucket vector.
Associated Constants
const STARTING_CAPACITY: usize
The capacity of the first entry of the bucket vector.
This value must be larger than or equal to 1
.
const GROWTH_RATE: f64
The rate with which the buckets are extended in their capacity.
This value must be larger than or equal to 1
.
Bigger values increase the growth acceleration upon pushing elements.
A value of 1
renders all buckets equally sized.
Implementors
impl BucketVecConfig for DefaultConfig
[src]
const STARTING_CAPACITY: usize
[src]
The first bucket has a capacity of 4.
const GROWTH_RATE: f64
[src]
The next bucket always doubles in capacity.