pub trait PRNConcreteBoundedGenerator<TGenerator: PRNGenerator>: Sized + ReprC {
// Required method
fn generate<TBounds: RangeBounds<Self>>(
generator: &mut TGenerator,
range: TBounds,
) -> Self;
}Expand description
Represents a trait for generating pseudo-random data
Required Methods§
Sourcefn generate<TBounds: RangeBounds<Self>>(
generator: &mut TGenerator,
range: TBounds,
) -> Self
fn generate<TBounds: RangeBounds<Self>>( generator: &mut TGenerator, range: TBounds, ) -> Self
Generates a new pseudo random instance of itself in given range.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".