Trait Samplable

Source
pub trait Samplable {
    // Required method
    fn random<R: RngCore>(rng: &mut R) -> Self;
}
Expand description

Type can be uniformely sampled from source of randomness

Required Methods§

Source

fn random<R: RngCore>(rng: &mut R) -> Self

Uniformely samples a random value of 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.

Implementors§