Struct concurrent_hashmap::Options [] [src]

pub struct Options<H> {
    pub capacity: usize,
    pub hasher_factory: H,
    pub concurrency: u16,
}

Options used when creating a hashmap.

Fields

Number of mappings to preallocate space for.

The map will always grow as needed, but preallocating space can improve performance. This value applies to the entire map. By default, no space is preallocated.

Factory for the hasher used for hashing keys.

Expected level of concurrency.

This value controls the number of partitions used internally in the map. A higher value leads to less contention, but also greater memory overhead. The default value is 16.

Trait Implementations

impl<H> Default for Options<H> where H: BuildHasher + Default
[src]

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