Struct rand::distributions::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]fn clone(&self) -> UniformDuration
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl UniformSampler for UniformDuration
[src]
impl UniformSampler for UniformDuration
[src]type X = Duration
The type sampled by this implementation.
fn new<B1, B2>(low_b: B1, high_b: B2) -> Self where
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
[src]
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Self where
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
[src]
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Duration
[src]
fn sample_single<R: Rng + ?Sized, B1, B2>(
low: B1,
high: B2,
rng: &mut R
) -> Self::X where
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
[src]
low: B1,
high: B2,
rng: &mut R
) -> Self::X where
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,