Struct rand::distributions::range::RangeInt
[−]
[src]
pub struct RangeInt<X> { /* fields omitted */ }
Implementation of RangeImpl
for integer types.
Trait Implementations
impl<X: Clone> Clone for RangeInt<X>
[src]
fn clone(&self) -> RangeInt<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 RangeInt<X>
[src]
impl<X: Debug> Debug for RangeInt<X>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl RangeImpl for RangeInt<i8>
[src]
type X = i8
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 RangeInt<i16>
[src]
type X = i16
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 RangeInt<i32>
[src]
type X = i32
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 RangeInt<i64>
[src]
type X = i64
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 RangeInt<isize>
[src]
type X = isize
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 RangeInt<u8>
[src]
type X = u8
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 RangeInt<u16>
[src]
type X = u16
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 RangeInt<u32>
[src]
type X = u32
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 RangeInt<u64>
[src]
type X = u64
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 RangeInt<usize>
[src]
type X = usize
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