pub struct RandStrBuilder { /* private fields */ }
Expand description
Builder for generating random strings.
Implementations§
Source§impl RandStrBuilder
impl RandStrBuilder
Sourcepub fn letter(&mut self) -> &mut Self
pub fn letter(&mut self) -> &mut Self
Allows the product to produce uppercase and lowercase letters.
Sourcepub fn whitespace(&mut self) -> &mut Self
pub fn whitespace(&mut self) -> &mut Self
Allows the generator to produce whitespaces.
Sourcepub fn custom(&mut self, custom: &str) -> &mut Self
pub fn custom(&mut self, custom: &str) -> &mut Self
Allows the generator to produce custom characters.
Sourcepub fn must_upper(&mut self) -> &mut Self
pub fn must_upper(&mut self) -> &mut Self
Forces the generator to produce strings containing uppercase letters.
Sourcepub fn must_lower(&mut self) -> &mut Self
pub fn must_lower(&mut self) -> &mut Self
Forces the generator to produce strings containing lowercase letters.
Sourcepub fn must_letter(&mut self) -> &mut Self
pub fn must_letter(&mut self) -> &mut Self
Forces the generator to produce strings containing letters.
Sourcepub fn must_digit(&mut self) -> &mut Self
pub fn must_digit(&mut self) -> &mut Self
Forces the generator to produce strings containing digits.
Sourcepub fn must_symbol(&mut self) -> &mut Self
pub fn must_symbol(&mut self) -> &mut Self
Forces the generator to produce strings containing symbols.
Sourcepub fn must_whitespace(&mut self) -> &mut Self
pub fn must_whitespace(&mut self) -> &mut Self
Forces the generator to produce strings containing whitespaces.
Sourcepub fn must_custom(&mut self, custom: &str) -> &mut Self
pub fn must_custom(&mut self, custom: &str) -> &mut Self
Forces the generator to produce strings containing custom characters.
Auto Trait Implementations§
impl Freeze for RandStrBuilder
impl !RefUnwindSafe for RandStrBuilder
impl !Send for RandStrBuilder
impl !Sync for RandStrBuilder
impl Unpin for RandStrBuilder
impl !UnwindSafe for RandStrBuilder
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