Struct hamt_sync::Map
[−]
[src]
pub struct Map<K, V> { /* fields omitted */ }
Methods
impl<K: Clone + Hash + PartialEq, V: Clone> Map<K, V>
[src]
pub fn new() -> Self
[src]
pub fn insert(&self, k: K, v: V) -> Self
[src]
pub fn delete(&self, k: &K) -> Option<Self>
[src]
pub fn find(&self, k: &K) -> Option<&V>
[src]
pub fn first_rest(&self) -> Option<(&K, &V, Self)>
[src]
pub fn size(&self) -> usize
[src]
Trait Implementations
impl<K: Clone, V: Clone> Clone for Map<K, V>
[src]
fn clone(&self) -> Map<K, V>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<K: Debug, V: Debug> Debug for Map<K, V>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<K: Eq, V: Eq> Eq for Map<K, V>
[src]
impl<K: Hash, V: Hash> Hash for Map<K, V>
[src]
fn hash<__HKV: Hasher>(&self, __arg_0: &mut __HKV)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<K: PartialEq, V: PartialEq> PartialEq for Map<K, V>
[src]
fn eq(&self, __arg_0: &Map<K, V>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Map<K, V>) -> bool
[src]
This method tests for !=
.