Struct evmap::Options
[−]
[src]
pub struct Options<M, S> where
S: BuildHasher, { /* fields omitted */ }
Options for how to initialize the map.
In particular, the options dictate the hashing function, meta type, and initial capacity of the map.
Methods
impl<M, S> Options<M, S> where
S: BuildHasher,
[src]
S: BuildHasher,
fn with_meta<M2>(self, meta: M2) -> Options<M2, S>
[src]
Set the initial meta value for the map.
fn with_hasher<S2>(self, hash_builder: S2) -> Options<M, S2> where
S2: BuildHasher,
[src]
S2: BuildHasher,
Set the hasher used for the map.
fn with_capacity(self, capacity: usize) -> Options<M, S>
[src]
Set the initial capacity for the map.
fn construct<K, V>(self) -> (ReadHandle<K, V, M, S>, WriteHandle<K, V, M, S>) where
K: Eq + Hash + Clone,
S: Clone,
V: Clone,
M: 'static + Clone,
[src]
K: Eq + Hash + Clone,
S: Clone,
V: Clone,
M: 'static + Clone,
Create the map, and construct the read and write handles used to access it.