Function smartstring::proptest::string_regex
source · [−]pub fn string_regex<Mode: SmartStringMode>(
regex: &str
) -> Result<BoxedStrategy<SmartString<Mode>>, Error> where
Mode: 'static,
Expand description
Creates a strategy which generates SmartString
s matching the given regular expression.