Trait cap_rand::distributions::uniform::SampleUniform
source · [−]pub trait SampleUniform {
type Sampler: UniformSampler
where
<Self::Sampler as 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.
Associated Types
type Sampler: UniformSampler
where
<Self::Sampler as UniformSampler>::X == Self
type Sampler: UniformSampler
where
<Self::Sampler as UniformSampler>::X == Self
The UniformSampler
implementation supporting type X
.