[][src]Module proptest::option

Strategies for generating std::Option values.

Structs

OptionStrategy

Strategy which generates Option values whose inner Some values are generated by another strategy.

OptionValueTree

ValueTree type corresponding to OptionStrategy.

Probability

A probability in the range [0.0, 1.0] with a default of 0.5.

Functions

of

Return a strategy producing Optional values wrapping values from the given delegate strategy.

prob

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

weighted

Return a strategy producing Optional values wrapping values from the given delegate strategy.