Struct HashMapStrategy
#[must_use = "strategies do nothing unless used"]
pub struct HashMapStrategy<K, V>(/* private field */)
where
K: Strategy,
V: Strategy,
K::Value: Hash + Eq,;
Strategy to create HashMaps with a length in a certain range.
Created by the hash_map() function in the same module.
Trait Implementations
impl<K, V> Clone for HashMapStrategy<K, V>
where
K: Strategy + Clone,
V: Strategy + Clone,
K::Value: Hash + Eq,
fn clone(&self) -> Self
impl<K, V> Debug for HashMapStrategy<K, V>
where
K: Strategy + Debug,
V: Strategy + Debug,
K::Value: Hash + Eq,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<K, V> Strategy for HashMapStrategy<K, V>
where
K: Strategy,
V: Strategy,
K::Value: Hash + Eq,
type Tree = HashMapValueTree<<K as Strategy>::Tree, <V as Strategy>::Tree>;type Value = HashMap<<K as Strategy>::Value, <V as Strategy>::Value>;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>