Struct num_bigint::UniformBigInt
[−]
[src]
pub struct UniformBigInt { /* fields omitted */ }
The back-end implementing rand's UniformSampler
for BigInt
.
Trait Implementations
impl Clone for UniformBigInt
[src]
fn clone(&self) -> UniformBigInt
[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 Debug for UniformBigInt
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl UniformSampler for UniformBigInt
[src]
type X = BigInt
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