Function proptest::string::string_regex
source · [−]pub fn string_regex(
regex: &str
) -> Result<RegexGeneratorStrategy<String>, Error>
Expand description
Creates a strategy which generates strings matching the given regular expression.
If you don’t need error handling and aren’t limited by setup time, it is
also possible to directly use a &str
as a strategy with the same effect.