random_constructible

Trait RandConstructEnumWithEnv

Source
pub trait RandConstructEnumWithEnv:
    Sized
    + Eq
    + Hash
    + Copy {
    // 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§

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.

Implementors§