pub struct RandomString {
pub length: usize,
pub prefix: Option<String>,
pub suffix: Option<String>,
}Expand description
随机字符串生成器
Fields§
§length: usize字符串长度
prefix: Option<String>可选前缀
suffix: Option<String>可选后缀
Implementations§
Source§impl RandomString
impl RandomString
Trait Implementations§
Source§impl Clone for RandomString
impl Clone for RandomString
Source§fn clone(&self) -> RandomString
fn clone(&self) -> RandomString
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 RandomString
impl Debug for RandomString
Auto Trait Implementations§
impl Freeze for RandomString
impl RefUnwindSafe for RandomString
impl Send for RandomString
impl Sync for RandomString
impl Unpin for RandomString
impl UnsafeUnpin for RandomString
impl UnwindSafe for RandomString
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