new_assert_stable

Function new_assert_stable 

Source
pub unsafe fn new_assert_stable<K, V>() -> (WriteHandle<K, V, (), RandomState>, ReadHandle<K, V, (), RandomState>)
where K: Eq + Hash + Clone, V: Eq + Hash,
Expand description

Create an empty eventually consistent map.

Use the Options builder for more control over initialization.

ยงSafety

This method is safe to call as long as the implementation of Hash and Eq for both K and V are deterministic. That is, they must always yield the same result if given the same inputs. For keys of type K, the result must also be consistent between different clones of the same key.