Struct secp256k1_zkp::rand::distributions::Alphanumeric [−][src]
pub struct Alphanumeric;
Sample a char
, uniformly distributed over ASCII letters and numbers:
a-z, A-Z and 0-9.
Example
use std::iter; use rand::{Rng, thread_rng}; use rand::distributions::Alphanumeric; let mut rng = thread_rng(); let chars: String = iter::repeat(()) .map(|()| rng.sample(Alphanumeric)) .take(7) .collect(); println!("Random chars: {}", chars);
Trait Implementations
impl Distribution<char> for Alphanumeric
[src]
impl Distribution<char> for Alphanumeric
[src]Auto Trait Implementations
impl RefUnwindSafe for Alphanumeric
impl RefUnwindSafe for Alphanumeric
impl Send for Alphanumeric
impl Send for Alphanumeric
impl Sync for Alphanumeric
impl Sync for Alphanumeric
impl Unpin for Alphanumeric
impl Unpin for Alphanumeric
impl UnwindSafe for Alphanumeric
impl UnwindSafe for Alphanumeric