pub struct RegexGenerator { /* private fields */ }Expand description
Generator for strings matching a regex pattern. Created by from_regex().
By default generates strings that contain a match. Use fullmatch()
to require the entire string to match.
Implementations§
Trait Implementations§
Source§impl Generator<String> for RegexGenerator
impl Generator<String> for RegexGenerator
Source§fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
fn map<U, F>(self, f: F) -> Mapped<T, U, F, Self>
Transform generated values using a function. Read more
Source§fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
fn flat_map<U, G, F>(self, f: F) -> FlatMapped<T, U, G, F, Self>
Generate a value, then use it to choose or configure another generator. Read more
Auto Trait Implementations§
impl Freeze for RegexGenerator
impl RefUnwindSafe for RegexGenerator
impl Send for RegexGenerator
impl Sync for RegexGenerator
impl Unpin for RegexGenerator
impl UnsafeUnpin for RegexGenerator
impl UnwindSafe for RegexGenerator
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