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