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.ValueTree corresponding to BTreeMapStrategy.Strategy to create
BTreeSets with a length in a certain range.ValueTree corresponding to BTreeSetStrategy.Strategy to create
BinaryHeaps with a length in a certain range.ValueTree corresponding to BinaryHeapStrategy.Strategy to create
HashMaps with a length in a certain range.ValueTree corresponding to HashMapStrategy.Strategy to create
HashSets with a length in a certain range.ValueTree corresponding to HashSetStrategy.Strategy to create
LinkedLists with a length in a certain range.ValueTree corresponding to LinkedListStrategy.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.ValueTree corresponding to VecDequeStrategy.Strategy to create
Vecs with a length in a certain range.ValueTree corresponding to VecStrategy.Functions
Create a strategy to generate
BinaryHeaps containing elements drawn from
element and with a size range given by size.Create a strategy to generate
BTreeMaps containing keys and values drawn
from key and value respectively, and with a size within the given
range.Create a strategy to generate
BTreeSets containing elements drawn from
element and with a size range given by size.Create a strategy to generate
HashMaps containing keys and values drawn
from key and value respectively, and with a size within the given
range.Create a strategy to generate
HashSets containing elements drawn from
element and with a size range given by size.Create a strategy to generate
LinkedLists containing elements drawn from
element and with a size range given by size.Creates a
SizeRange from some value that is convertible into it.Create a strategy to generate
Vecs containing elements drawn from
element and with a size range given by size.Create a strategy to generate
VecDeques containing elements drawn from
element and with a size range given by size.