Expand description
Strategies for generating strings and byte strings from regular expressions.
Structs§
- Regex
Generator Strategy - Strategy which generates values (i.e.,
StringorVec<u8>) matching a regular expression. - Regex
Generator Value Tree ValueTreecorresponding toRegexGeneratorStrategy.- String
Param - Wraps the regex that forms the
StrategyforStringso that a sensibleDefaultcan be given. The default is a string of non-control characters.
Enums§
- Error
- Errors which may occur when preparing a regular expression for use with string generation.
Functions§
- bytes_
regex - Creates a strategy which generates byte strings matching the given regular expression.
- bytes_
regex_ parsed - Like
bytes_regex(), but allows providing a pre-parsed expression. - string_
regex - Creates a strategy which generates strings matching the given regular expression.
- string_
regex_ parsed - Like
string_regex(), but allows providing a pre-parsed expression.