pub trait Bound {
type X: SampleUniform;
// Required methods
fn min_value() -> Self::X;
fn max_value() -> Self::X;
fn my_sample(dist: &Uniform<Self::X>, rng: &mut StdRng) -> Self;
}
Required Associated Types§
type X: SampleUniform
Required Methods§
fn min_value() -> Self::X
fn max_value() -> Self::X
fn my_sample(dist: &Uniform<Self::X>, rng: &mut StdRng) -> 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.