pub struct DomainGenerator { /* private fields */ }Expand description
Generator for domain name strings. Created by domains().
Implementations§
Source§impl DomainGenerator
impl DomainGenerator
Sourcepub fn max_length(self, max_length: usize) -> Self
pub fn max_length(self, max_length: usize) -> Self
Set the maximum length (must be between 4 and 255).
Trait Implementations§
Source§impl Generator<String> for DomainGenerator
impl Generator<String> for DomainGenerator
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 DomainGenerator
impl RefUnwindSafe for DomainGenerator
impl Send for DomainGenerator
impl Sync for DomainGenerator
impl Unpin for DomainGenerator
impl UnsafeUnpin for DomainGenerator
impl UnwindSafe for DomainGenerator
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