Module proptest::collection[][src]

Strategies for generating std::collections of values.

Structs

BTreeMapStrategy

Strategy to create BTreeMaps with a length in a certain range.

BTreeMapValueTree

ValueTree corresponding to BTreeMapStrategy.

BTreeSetStrategy

Strategy to create BTreeSets with a length in a certain range.

BTreeSetValueTree

ValueTree corresponding to BTreeSetStrategy.

BinaryHeapStrategy

Strategy to create BinaryHeaps with a length in a certain range.

BinaryHeapValueTree

ValueTree corresponding to BinaryHeapStrategy.

HashMapStrategy

Strategy to create HashMaps with a length in a certain range.

HashMapValueTree

ValueTree corresponding to HashMapStrategy.

HashSetStrategy

Strategy to create HashSets with a length in a certain range.

HashSetValueTree

ValueTree corresponding to HashSetStrategy.

LinkedListStrategy

Strategy to create LinkedLists with a length in a certain range.

LinkedListValueTree

ValueTree corresponding to LinkedListStrategy.

SizeRange

The minimum and maximum range/bounds on the size of a collection. The interval must form a subset of [0, std::usize::MAX).

VecDequeStrategy

Strategy to create VecDeques with a length in a certain range.

VecDequeValueTree

ValueTree corresponding to VecDequeStrategy.

VecStrategy

Strategy to create Vecs with a length in a certain range.

VecValueTree

ValueTree corresponding to VecStrategy.

Functions

binary_heap

Create a strategy to generate BinaryHeaps containing elements drawn from element and with a size range given by size.

btree_map

Create a strategy to generate BTreeMaps containing keys and values drawn from key and value respectively, and with a size within the given range.

btree_set

Create a strategy to generate BTreeSets containing elements drawn from element and with a size range given by size.

hash_map

Create a strategy to generate HashMaps containing keys and values drawn from key and value respectively, and with a size within the given range.

hash_set

Create a strategy to generate HashSets containing elements drawn from element and with a size range given by size.

linked_list

Create a strategy to generate LinkedLists containing elements drawn from element and with a size range given by size.

size_range

Creates a SizeRange from some value that is convertible into it.

vec

Create a strategy to generate Vecs containing elements drawn from element and with a size range given by size.

vec_deque

Create a strategy to generate VecDeques containing elements drawn from element and with a size range given by size.