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
fn clone(&self) -> UniformDuration
[src]
fn clone(&self) -> UniformDuration
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for UniformDuration
[src]
impl Copy for UniformDuration
impl Debug for UniformDuration
[src]
impl Debug for UniformDuration
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl UniformSampler for UniformDuration
[src]
impl UniformSampler for UniformDuration
type X = Duration
The type sampled by this implementation.
fn new(low: Duration, high: Duration) -> UniformDuration
[src]
fn new(low: Duration, high: Duration) -> UniformDuration
Construct self, with inclusive lower bound and exclusive upper bound [low, high)
. Read more
fn new_inclusive(low: Duration, high: Duration) -> UniformDuration
[src]
fn new_inclusive(low: Duration, high: Duration) -> UniformDuration
Construct self, with inclusive bounds [low, high]
. Read more
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Duration
[src]
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Duration
Sample a value.
fn sample_single<R: Rng + ?Sized>(
low: Self::X,
high: Self::X,
rng: &mut R
) -> Self::X
[src]
fn sample_single<R: Rng + ?Sized>(
low: Self::X,
high: Self::X,
rng: &mut R
) -> Self::X
Sample a single value uniformly from a range with inclusive lower bound and exclusive upper bound [low, high)
. Read more
Auto Trait Implementations
impl Send for UniformDuration
impl Send for UniformDuration
impl Sync for UniformDuration
impl Sync for UniformDuration