pub trait EntropyConcreteGenerator<TGenerator: EntropyGenerator>: Sized + ReprC {
// Required method
fn generate(generator: &TGenerator) -> Result<Self, TGenerator::Error>;
}
Expand description
Generates random type based on surrounding entropy, i.e. based on what the operating system provides as “true” randomness.
Similar to EntropyGenerator
but works with a single type
only.
Required Methods§
Sourcefn generate(generator: &TGenerator) -> Result<Self, TGenerator::Error>
fn generate(generator: &TGenerator) -> Result<Self, TGenerator::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.