Module proptest::option

source ·
Expand description

Strategies for generating std::Option values.

Structs§

  • Strategy which generates Option values whose inner Some values are generated by another strategy.
  • ValueTree type corresponding to OptionStrategy.
  • A probability in the range [0.0, 1.0] with a default of 0.5.

Functions§

  • Return a strategy producing Optional values wrapping values from the given delegate strategy.
  • Creates a Probability from some value that is convertible into it.
  • Return a strategy producing Optional values wrapping values from the given delegate strategy.