Function zebra_test::prelude::prop::option::of

pub fn of<T>(t: T) -> OptionStrategy<T>
where T: Strategy,
Expand description

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.