Function suppositions::generators::optional [] [src]

pub fn optional<G>(inner: G) -> OptionalGenerator<G>

Generates an Optional<_> value with a 50% chance of Some(_) from the inner generator, otherwise None.