Struct num_bigint_dig::UniformBigUint
source · pub struct UniformBigUint { /* private fields */ }
Expand description
The back-end implementing rand’s UniformSampler
for BigUint
.
Trait Implementations§
source§impl Clone for UniformBigUint
impl Clone for UniformBigUint
source§fn clone(&self) -> UniformBigUint
fn clone(&self) -> UniformBigUint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniformBigUint
impl Debug for UniformBigUint
source§impl UniformSampler for UniformBigUint
impl UniformSampler for UniformBigUint
source§fn new<B1, B2>(low_b: B1, high_b: B2) -> Selfwhere
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
fn new<B1, B2>(low_b: B1, high_b: B2) -> Selfwhere B1: SampleBorrow<Self::X> + Sized, B2: SampleBorrow<Self::X> + Sized,
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read moresource§fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Selfwhere
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Selfwhere B1: SampleBorrow<Self::X> + Sized, B2: SampleBorrow<Self::X> + Sized,
Construct self, with inclusive bounds
[low, high]
. Read moresource§fn sample_single<R: Rng + ?Sized, B1, B2>(
low_b: B1,
high_b: B2,
rng: &mut R
) -> Self::Xwhere
B1: SampleBorrow<Self::X> + Sized,
B2: SampleBorrow<Self::X> + Sized,
fn sample_single<R: Rng + ?Sized, B1, B2>( low_b: B1, high_b: B2, rng: &mut R ) -> Self::Xwhere B1: SampleBorrow<Self::X> + Sized, B2: SampleBorrow<Self::X> + Sized,
Sample a single value uniformly from a range with inclusive lower bound
and exclusive upper bound
[low, high)
. Read moresource§fn sample_single_inclusive<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<Self::X>,
B2: SampleBorrow<Self::X>,
fn sample_single_inclusive<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::Xwhere R: Rng + ?Sized, B1: SampleBorrow<Self::X>, B2: SampleBorrow<Self::X>,
Sample a single value uniformly from a range with inclusive lower bound
and inclusive upper bound
[low, high]
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for UniformBigUint
impl Send for UniformBigUint
impl Sync for UniformBigUint
impl Unpin for UniformBigUint
impl UnwindSafe for UniformBigUint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more