pub struct StringGenerator { /* private fields */ }Expand description
Generator for string values
Implementations§
Source§impl StringGenerator
impl StringGenerator
Sourcepub fn ascii_printable(min_length: usize, max_length: usize) -> Self
pub fn ascii_printable(min_length: usize, max_length: usize) -> Self
Create a new string generator with ASCII printable characters
Sourcepub fn ascii_alphanumeric(min_length: usize, max_length: usize) -> Self
pub fn ascii_alphanumeric(min_length: usize, max_length: usize) -> Self
Create a new string generator with ASCII alphanumeric characters
Sourcepub fn with_char_generator(
char_generator: CharGenerator,
min_length: usize,
max_length: usize,
) -> Self
pub fn with_char_generator( char_generator: CharGenerator, min_length: usize, max_length: usize, ) -> Self
Create a new string generator with a custom character generator
Trait Implementations§
Source§impl Clone for StringGenerator
impl Clone for StringGenerator
Source§fn clone(&self) -> StringGenerator
fn clone(&self) -> StringGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringGenerator
impl Debug for StringGenerator
Source§impl Generator<String> for StringGenerator
impl Generator<String> for StringGenerator
Auto Trait Implementations§
impl Freeze for StringGenerator
impl RefUnwindSafe for StringGenerator
impl Send for StringGenerator
impl Sync for StringGenerator
impl Unpin for StringGenerator
impl UnwindSafe for StringGenerator
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