Struct hamt_rs::HamtMap [] [src]

pub struct HamtMap<K, V, IS = ShareStore<K, V>, H = StdHasher> { /* fields omitted */ }

Methods

impl<K, V, IS, H> HamtMap<K, V, IS, H> where
    K: Eq + Send + Sync + Hash,
    V: Send + Sync,
    IS: ItemStore<K, V>,
    H: Hasher + Default
[src]

Inserts a key-value pair into the map. An existing value for a key is replaced by the new value. The first tuple element of the return value is the new map instance representing the map after the insertion. The second tuple element is true if the size of the map was changed by the operation and false otherwise.

Removes a key-value pair from the map. The first tuple element of the return value is the new map instance representing the map after the insertion. The second tuple element is true if the size of the map was changed by the operation and false otherwise.

Inserts a key-value pair into the map. Same as insert() but with a return type that's better suited to chaining multiple calls together.

Removes a key-value pair from the map. Same as remove() but with a return type that's better suited to chaining multiple call together

Trait Implementations

impl<K, V, IS, H> Clone for HamtMap<K, V, IS, H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<K, V, IS, H> Default for HamtMap<K, V, IS, H> where
    K: Eq + Send + Sync + Hash,
    V: Send + Sync,
    IS: ItemStore<K, V>,
    H: Hasher + Default
[src]

Returns the "default value" for a type. Read more

impl<'a, K, V, IS, H> IntoIterator for &'a HamtMap<K, V, IS, H> where
    K: Eq + Send + Sync + Hash + 'a,
    V: Send + Sync + 'a,
    IS: ItemStore<K, V> + 'a,
    H: Hasher + Default + 'a, 
[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

impl<K, V, IS, H> PartialEq for HamtMap<K, V, IS, H> where
    K: Eq + Send + Sync + Hash,
    V: PartialEq + Send + Sync,
    IS: ItemStore<K, V>,
    H: Hasher + Default
[src]

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

This method tests for !=.

impl<K, V, IS, H> Eq for HamtMap<K, V, IS, H> where
    K: Eq + Send + Sync + Hash,
    V: Eq + Send + Sync,
    IS: ItemStore<K, V>,
    H: Hasher + Default
[src]

impl<K, V, IS, H> FromIterator<(K, V)> for HamtMap<K, V, IS, H> where
    K: Eq + Send + Sync + Hash,
    V: Send + Sync,
    IS: ItemStore<K, V>,
    H: Hasher + Default
[src]

Creates a value from an iterator. Read more