Module zebra_test::prelude::prop::option
Expand description
Strategies for generating std::Option
values.
Structs§
- Strategy which generates
Option
values whose innerSome
values are generated by another strategy. ValueTree
type corresponding toOptionStrategy
.- A probability in the range
[0.0, 1.0]
with a default of0.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.