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>

Auto Trait Implementations

impl<T> Freeze for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: Freeze,

impl<T> RefUnwindSafe for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: RefUnwindSafe,

impl<T> Send for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: Send,

impl<T> Sync for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: Sync,

impl<T> Unpin for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: Unpin,

impl<T> UnsafeUnpin for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: UnsafeUnpin,

impl<T> UnwindSafe for HashSetStrategy<T> where Filter<Map<VecStrategy<T>, VecToHashSet>, MinSize>: UnwindSafe,

Blanket Implementations

impl<T> Any for HashSetStrategy<T> where T: 'static + ?Sized,

impl<T> Borrow<T> for HashSetStrategy<T> where T: ?Sized,

impl<T> BorrowMut<T> for HashSetStrategy<T> where T: ?Sized,

impl<T> CloneToUninit for HashSetStrategy<T> where T: Clone,

impl<T> From<T> for HashSetStrategy<T>

impl<T> ToOwned for HashSetStrategy<T> where T: Clone,

impl<T, U> Into<U> for HashSetStrategy<T> where U: From<T>,

impl<T, U> TryFrom<U> for HashSetStrategy<T> where U: Into<T>,

impl<T, U> TryInto<U> for HashSetStrategy<T> where U: TryFrom<T>,