Module proptest::collection
source · Expand description
Strategies for generating std::collections of values.
Structs§
- Strategy to create
BTreeMaps with a length in a certain range. ValueTreecorresponding toBTreeMapStrategy.- Strategy to create
BTreeSets with a length in a certain range. ValueTreecorresponding toBTreeSetStrategy.- Strategy to create
BinaryHeaps with a length in a certain range. ValueTreecorresponding toBinaryHeapStrategy.- Strategy to create
HashMaps with a length in a certain range. ValueTreecorresponding toHashMapStrategy.- Strategy to create
HashSets with a length in a certain range. ValueTreecorresponding toHashSetStrategy.- Strategy to create
LinkedLists with a length in a certain range. ValueTreecorresponding toLinkedListStrategy.- The minimum and maximum range/bounds on the size of a collection. The interval must form a subset of
[0, std::usize::MAX). - Strategy to create
VecDeques with a length in a certain range. ValueTreecorresponding toVecDequeStrategy.- Strategy to create
Vecs with a length in a certain range. ValueTreecorresponding toVecStrategy.
Functions§
- Create a strategy to generate
BinaryHeaps containing elements drawn fromelementand with a size range given bysize. - Create a strategy to generate
BTreeMaps containing keys and values drawn fromkeyandvaluerespectively, and with a size within the given range. - Create a strategy to generate
BTreeSets containing elements drawn fromelementand with a size range given bysize. - hash_map
stdCreate a strategy to generateHashMaps containing keys and values drawn fromkeyandvaluerespectively, and with a size within the given range. - hash_set
stdCreate a strategy to generateHashSets containing elements drawn fromelementand with a size range given bysize. - Create a strategy to generate
LinkedLists containing elements drawn fromelementand with a size range given bysize. - Creates a
SizeRangefrom some value that is convertible into it. - Create a strategy to generate
Vecs containing elements drawn fromelementand with a size range given bysize. - Create a strategy to generate
VecDeques containing elements drawn fromelementand with a size range given bysize.