Module proptest::collection
source · [−]Expand description
Strategies for generating std::collections
of values.
Structs
Strategy to create BTreeMap
s with a length in a certain range.
ValueTree
corresponding to BTreeMapStrategy
.
Strategy to create BTreeSet
s with a length in a certain range.
ValueTree
corresponding to BTreeSetStrategy
.
Strategy to create BinaryHeap
s with a length in a certain range.
ValueTree
corresponding to BinaryHeapStrategy
.
Strategy to create HashMap
s with a length in a certain range.
ValueTree
corresponding to HashMapStrategy
.
Strategy to create HashSet
s with a length in a certain range.
ValueTree
corresponding to HashSetStrategy
.
Strategy to create LinkedList
s 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 VecDeque
s with a length in a certain range.
ValueTree
corresponding to VecDequeStrategy
.
Strategy to create Vec
s with a length in a certain range.
ValueTree
corresponding to VecStrategy
.
Functions
Create a strategy to generate BinaryHeap
s containing elements drawn from
element
and with a size range given by size
.
Create a strategy to generate BTreeMap
s containing keys and values drawn
from key
and value
respectively, and with a size within the given
range.
Create a strategy to generate BTreeSet
s containing elements drawn from
element
and with a size range given by size
.
Create a strategy to generate HashMap
s containing keys and values drawn
from key
and value
respectively, and with a size within the given
range.
Create a strategy to generate HashSet
s containing elements drawn from
element
and with a size range given by size
.
Create a strategy to generate LinkedList
s 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 Vec
s containing elements drawn from
element
and with a size range given by size
.
Create a strategy to generate VecDeque
s containing elements drawn from
element
and with a size range given by size
.