Function proptest::collection::btree_map [−][src]
pub fn btree_map<K: Strategy, V: Strategy>(
key: K,
value: V,
size: impl Into<SizeRange>
) -> BTreeMapStrategy<K, V> where
K::Value: Ord,
Create a strategy to generate BTreeMap
s 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
BTreeMap
has at least the minimum number of elements, in case key
should produce duplicate values.