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

Object Safety§

This trait is not object safe.

Implementors§