Struct rand_distr::uniform::UniformDuration [−][src]
pub struct UniformDuration { /* fields omitted */ }
The back-end implementing UniformSampler
for Duration
.
Unless you are implementing UniformSampler
for your own types, this type
should not be used directly, use Uniform
instead.
Trait Implementations
impl Clone for UniformDuration
[src]
impl Clone for UniformDuration
[src]pub fn clone(&self) -> UniformDuration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UniformDuration
[src]
impl Debug for UniformDuration
[src]impl UniformSampler for UniformDuration
[src]
impl UniformSampler for UniformDuration
[src]type X = Duration
The type sampled by this implementation.
pub fn new<B1, B2>(low_b: B1, high_b: B2) -> UniformDuration where
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
[src]
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
pub fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> UniformDuration where
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
[src]
B1: SampleBorrow<<UniformDuration as UniformSampler>::X>,
B2: SampleBorrow<<UniformDuration as UniformSampler>::X>,
pub fn sample<R>(&self, rng: &mut R) -> Duration where
R: Rng + ?Sized,
[src]
R: Rng + ?Sized,
pub fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::X where
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
[src]
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,