[−][src]Struct evmap::Options
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,
pub fn with_meta<M2>(self, meta: M2) -> Options<M2, S>
[src]
Set the initial meta value for the map.
pub fn with_hasher<S2>(self, hash_builder: S2) -> Options<M, S2> where
S2: BuildHasher,
[src]
S2: BuildHasher,
Set the hasher used for the map.
pub fn with_capacity(self, capacity: usize) -> Options<M, S>
[src]
Set the initial capacity for the map.
pub fn construct<K, V>(
self
) -> (ReadHandle<K, V, M, S>, WriteHandle<K, V, M, S>) where
K: Eq + Hash + Clone,
S: BuildHasher + Clone,
V: Eq + ShallowCopy,
M: 'static + Clone,
[src]
self
) -> (ReadHandle<K, V, M, S>, WriteHandle<K, V, M, S>) where
K: Eq + Hash + Clone,
S: BuildHasher + Clone,
V: Eq + ShallowCopy,
M: 'static + Clone,
Create the map, and construct the read and write handles used to access it.
Trait Implementations
Auto Trait Implementations
impl<M, S> Send for Options<M, S> where
M: Send,
S: Send,
M: Send,
S: Send,
impl<M, S> Sync for Options<M, S> where
M: Sync,
S: Sync,
M: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,