Function proptest::collection::hash_set
source · pub fn hash_set<T, S>(element: T, size: S) -> HashSetStrategy<T>where
T: Strategy,
ValueFor<T>: Hash + Eq,
S: Into<SizeRange>,
Expand description
Create a strategy to generate HashSet
s containing elements drawn from
element
and with a size range given by size
.
This strategy will implicitly do local rejects to ensure that the HashSet
has at least the minimum number of elements, in case element
should
produce duplicate values.