pub enum Rand {
Safe,
UnSafe,
}Variants
Safe
UnSafe
Implementations
sourceimpl Rand
impl Rand
pub fn random_type<T>(&self) -> T where
Standard: Distribution<T>,
pub fn random_bool(&self) -> bool
pub fn rgb_range(&self, min: u8, max: u8) -> (u8, u8, u8)
pub fn random_range<T, R>(&self, range: R) -> T where
T: SampleUniform,
R: SampleRange<T>,
pub fn random_rng(&self, step: usize) -> Vec<u8>
pub fn nanoid_format(&self, alphabet: &[char], size: usize) -> String
Auto Trait Implementations
impl RefUnwindSafe for Rand
impl Send for Rand
impl Sync for Rand
impl Unpin for Rand
impl UnwindSafe for Rand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more