pub trait PRNConcreteGenerator<TGenerator: PRNGenerator>: Sized + ReprC {
// Required method
fn generate(generator: &mut TGenerator) -> Self;
}Expand description
Generates pseudo random instance of current type.
Similar to PRNGenerator but works with a single type
only.
Required Methods§
Sourcefn generate(generator: &mut TGenerator) -> Self
fn generate(generator: &mut TGenerator) -> Self
Generates a new pseudo random instance of itself.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".