pub trait SampleUniform: Sized {
type Sampler: UniformSampler<X = Self>;
}
Expand description
Helper trait for creating objects using the correct implementation of
UniformSampler
for the sampling type.
See the module documentation on how to implement Uniform
range
sampling for a custom type.
Required Associated Types§
Sourcetype Sampler: UniformSampler<X = Self>
type Sampler: UniformSampler<X = Self>
The UniformSampler
implementation supporting type X
.
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.