Struct rand::distributions::range::RangeFloat
[−]
[src]
pub struct RangeFloat<X> { /* fields omitted */ }
Implementation of RangeImpl
for float types.
Trait Implementations
impl<X: Clone> Clone for RangeFloat<X>
[src]
fn clone(&self) -> RangeFloat<X>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<X: Copy> Copy for RangeFloat<X>
[src]
impl<X: Debug> Debug for RangeFloat<X>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl RangeImpl for RangeFloat<f32>
[src]
type X = f32
The type sampled by this implementation.
fn new(low: Self::X, high: Self::X) -> Self
[src]
Construct self, with inclusive lower bound and exclusive upper bound [low, high)
. Read more
fn new_inclusive(low: Self::X, high: Self::X) -> Self
[src]
Construct self, with inclusive bounds [low, high]
. Read more
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::X
[src]
Sample a value.
fn sample_single<R: Rng + ?Sized>(
low: Self::X,
high: Self::X,
rng: &mut R
) -> Self::X
[src]
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
impl RangeImpl for RangeFloat<f64>
[src]
type X = f64
The type sampled by this implementation.
fn new(low: Self::X, high: Self::X) -> Self
[src]
Construct self, with inclusive lower bound and exclusive upper bound [low, high)
. Read more
fn new_inclusive(low: Self::X, high: Self::X) -> Self
[src]
Construct self, with inclusive bounds [low, high]
. Read more
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Self::X
[src]
Sample a value.
fn sample_single<R: Rng + ?Sized>(
low: Self::X,
high: Self::X,
rng: &mut R
) -> Self::X
[src]
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<X> Send for RangeFloat<X> where
X: Send,
X: Send,
impl<X> Sync for RangeFloat<X> where
X: Sync,
X: Sync,