Struct regex_generate::Generator
source · pub struct Generator<R: Rng> { /* private fields */ }
Expand description
Generator reads a string of regular expression syntax and generates strings based on it.
Implementations§
source§impl<R: Rng> Generator<R>
impl<R: Rng> Generator<R>
sourcepub fn parse(s: &str, rng: R) -> Result<Generator<R>, Error>
pub fn parse(s: &str, rng: R) -> Result<Generator<R>, Error>
Create a new Generator from the regular expression string and use the given Rng for randomization.