Function proptest::collection::hash_map [] [src]

pub fn hash_map<K, V, S>(key: K, value: V, size: S) -> HashMapStrategy<K, V> where
    K: Strategy,
    V: Strategy,
    ValueFor<K>: Hash + Eq,
    S: Into<SizeRange>, 

Create a strategy to generate HashMaps containing keys and values drawn from key and value respectively, and with a size within the given range.

This strategy will implicitly do local rejects to ensure that the HashMap has at least the minimum number of elements, in case key should produce duplicate values.