Struct hamt_sync::Map[][src]

pub struct Map<K, V> { /* fields omitted */ }

Map data structure of HAMT. Note that every method does not modify the original map but creates a new one if necessary.

Methods

impl<K: Clone + Hash + PartialEq, V: Clone> Map<K, V>
[src]

Creates a new map.

Inserts a key-value pair into a map.

Deletes a key and its corresponding value from a map.

Finds a key and its corresponding value in a map.

Removes the first element in a map and returns a new map containing the rest of elements.

Returns a size of a map.

Trait Implementations

impl<K: Clone, V: Clone> Clone for Map<K, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<K: Debug, V: Debug> Debug for Map<K, V>
[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]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<K: PartialEq, V: PartialEq> PartialEq for Map<K, V>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, K, V> IntoIterator for &'a Map<K, V>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<K, V> Send for Map<K, V> where
    K: Send + Sync,
    V: Send + Sync

impl<K, V> Sync for Map<K, V> where
    K: Send + Sync,
    V: Send + Sync