Expand description
Strategies for generating values by taking samples of collections.
Note that the strategies in this module are not native combinators; that is, the input collection is not itself a strategy, but is rather fixed when the strategy is created.
Re-exports§
pub use crate::collection::size_range;
pub use crate::collection::SizeRange;
Structs§
- A stand-in for an index into a slice or similar collection or conceptually similar things.
- Strategy to create
Index
es. ValueTree
corresponding toIndexStrategy
.- Strategy to produce one value from a fixed collection of options.
ValueTree
corresponding toSelect
.- A value for picking random values out of iterators.
- Strategy to create
Selector
s. ValueTree
corresponding toSelectorStrategy
.- Strategy to generate
Vec
s by sampling a subsequence from another collection. ValueTree
type forSubsequence
.
Functions§
- Create a strategy which uniformly selects one value from
values
. - Sample subsequences whose size are within
size
from the given collectionvalues
.