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