pub trait RandConstructEnumWithEnv:
Sized
+ Clone
+ Eq
+ Hash {
// Provided methods
fn random_with_env<P: RandConstructProbabilityMapProvider<Self>>() -> Self { ... }
fn random_uniform_with_env<P: RandConstructProbabilityMapProvider<Self>>( ) -> Self { ... }
fn sample_from_provider<P: RandConstructProbabilityMapProvider<Self>, RNG: Rng + ?Sized>(
rng: &mut RNG,
) -> Self { ... }
fn sample_uniformly_from_provider<P: RandConstructProbabilityMapProvider<Self>, RNG: Rng + ?Sized>(
rng: &mut RNG,
) -> Self { ... }
}Provided Methods§
fn random_with_env<P: RandConstructProbabilityMapProvider<Self>>() -> Self
fn random_uniform_with_env<P: RandConstructProbabilityMapProvider<Self>>() -> Self
fn sample_from_provider<P: RandConstructProbabilityMapProvider<Self>, RNG: Rng + ?Sized>( rng: &mut RNG, ) -> Self
fn sample_uniformly_from_provider<P: RandConstructProbabilityMapProvider<Self>, RNG: Rng + ?Sized>( rng: &mut RNG, ) -> Self
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.