[−][src]Function proptest::option::of
pub fn of<T: Strategy>(t: T) -> OptionStrategy<T>
Return a strategy producing Optional
values wrapping values from the
given delegate strategy.
Some
values shrink to None
.
Some
and None
are each chosen with 50% probability.