Trait Gen

Source
pub trait Gen: Rng {
    // Required method
    fn size(&self) -> usize;
}
Expand description

Gen wraps a rand::Rng with parameters to control the distribution of random values.

A value with type satisfying the Gen trait can be constructed with the gen function in this crate.

Required Methods§

Source

fn size(&self) -> usize

Implementors§

Source§

impl<R: Rng> Gen for StdGen<R>