Module dhash_map

Module dhash_map 

Source
Expand description

A hash map with double keys implemented as wrapper above two HashMaps.

Macros§

dhashmap
Create a DHashMap<K1, K2, V, RandomState> from a list of sequentially given keys and values.

Structs§

DHashMap
A hash map with double keys implemented as wrapper above two HashMaps.
Drain
A draining iterator over the entries of a DHashMap in arbitrary order. The iterator element is tuple of type(K1, K2, V).
EntryError
The error returned by entry method when there is no way to distinguish which entry should be returned. For more information about error kinds look at ErrorKind enum.
InsertError
The error returned by insert method (and also try_insert method) when there is no way to distinguish how given value with key #1 and key #2 should be inserted. It is also part of the TryInsertError enum which is returned by try_insert method of DHashMap. For more information about error kinds look at ErrorKind enum.
IntoIter
An owning iterator over the entries of a DHashMap.
IntoKeys
An owning iterator over the keys of a DHashMap.
IntoValues
An owning iterator over the values of a DHashMap.
Iter
An iterator over the entries of a DHashMap in arbitrary order. The iterator element is tuple of type (&'a K1, &'a K2, &'a V).
IterMut
A mutable iterator over the entries of a DHashMap in arbitrary order. The iterator element is tuple of type(&'a K1, &'a K2, &'a mut V).
Keys
An iterator over the keys of a DHashMap in arbitrary order. The iterator element is tuple of type (&'a K1, &'a K2).
OccupiedEntry
A view into an occupied entry in a DHashMap. It is part of the Entry enum and OccupiedError struct.
OccupiedError
The error returned by try_insert (as a part of the TryInsertError enum) when the keys already exist and point to the same value.
VacantEntry
A view into a vacant entry in a DHashMap. It is part of the Entry enum.
Values
An iterator over the values of a DHashMap in arbitrary order. The iterator element is &'a V.
ValuesMut
A mutable iterator over the values of a DHashMap in arbitrary order. The iterator element is &'a mut V.

Enums§

Entry
A view into a single entry in a map, which may either be vacant or occupied.
ErrorKind
A view into an error kind returned by entry, insert, try_insert methods of the DHashMap. It is part of the EntryError structure, InsertError structure and TryInsertError enum.
TryInsertError
The error returned by try_insert method when the keys already exist and point to the same value (look at OccupiedError) or there is no way to distinguish how given value with key #1 and key #2 should be inserted. For more information about error kinds look at OccupiedError, InsertError structures and ErrorKind enum.