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 UniformDurationfn clone(&self) -> UniformDuration[src]
fn clone(&self) -> UniformDurationReturns 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 UniformDurationimpl Debug for UniformDuration[src]
impl Debug for UniformDurationfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl UniformSampler for UniformDuration[src]
impl UniformSampler for UniformDurationtype X = Duration
The type sampled by this implementation.
fn new(low: Duration, high: Duration) -> UniformDuration[src]
fn new(low: Duration, high: Duration) -> UniformDurationConstruct 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) -> UniformDurationConstruct 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) -> DurationSample 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::XSample 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 UniformDurationimpl Sync for UniformDuration
impl Sync for UniformDuration