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.
Auto Trait Implementations§
impl<R> Freeze for Generator<R>where
R: Freeze,
impl<R> RefUnwindSafe for Generator<R>where
R: RefUnwindSafe,
impl<R> Send for Generator<R>where
R: Send,
impl<R> Sync for Generator<R>where
R: Sync,
impl<R> Unpin for Generator<R>where
R: Unpin,
impl<R> UnwindSafe for Generator<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more