Trait cap_rand::distributions::DistString [−][src]
pub trait DistString { fn append_string<R>(&self, rng: &mut R, string: &mut String, len: usize)
where
R: Rng + ?Sized; fn sample_string<R>(&self, rng: &mut R, len: usize) -> String
where
R: Rng + ?Sized, { ... } }
Expand description
String
sampler
Sampling a String
of random characters is not quite the same as collecting
a sequence of chars. This trait contains some helpers.