pub struct RandomGenerator { /* private fields */ }
Trait Implementations§
Source§impl Clone for RandomGenerator
impl Clone for RandomGenerator
Source§fn clone(&self) -> RandomGenerator
fn clone(&self) -> RandomGenerator
Returns a copy 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 RandomGeneratorTemplate for RandomGenerator
impl RandomGeneratorTemplate for RandomGenerator
fn get_random_bytes(&mut self, len: usize) -> Vec<u8>
fn get_random_usize(&mut self, min: usize, max: usize) -> usize
fn get_random_u32(&mut self) -> u32
fn get_random_u64(&mut self) -> u64
fn get_random_string(&mut self, len: usize) -> String
fn get_random_from_characters(&mut self, len: usize, characters: &str) -> String
fn get_random_alphanumeric(&mut self, len: usize) -> String
fn generate_key(&mut self, len: usize) -> Vec<u8>
Auto Trait Implementations§
impl Freeze for RandomGenerator
impl RefUnwindSafe for RandomGenerator
impl Send for RandomGenerator
impl Sync for RandomGenerator
impl Unpin for RandomGenerator
impl UnwindSafe for RandomGenerator
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