Struct OptionStrategy
#[must_use = "strategies do nothing unless used"]
pub struct OptionStrategy<T>(/* private field */)
where
T: Strategy,;
Strategy which generates Option values whose inner Some values are
generated by another strategy.
Constructed by other functions in this module.
Trait Implementations
impl<T> Clone for OptionStrategy<T>
where
T: Strategy + Clone,
T::Value: Clone,
fn clone(&self) -> Self
impl<T> Strategy for OptionStrategy<T>
where
T: Strategy,
type Tree = OptionValueTree<T>;type Value = Option<<T as Strategy>::Value>;fn new_tree(&self, runner: &mut TestRunner) -> NewTree<Self>
impl<T: Strategy + Debug> Debug for OptionStrategy<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result