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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".