pub struct UniformBigInt { /* private fields */ }Available on crate features
rand_0_10 or rand_0_9 only.Expand description
The back-end implementing rand’s UniformSampler for BigInt.
Trait Implementations§
Source§impl Clone for UniformBigInt
impl Clone for UniformBigInt
Source§fn clone(&self) -> UniformBigInt
fn clone(&self) -> UniformBigInt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UniformBigInt
impl Debug for UniformBigInt
Source§impl UniformSampler for UniformBigInt
Available on crate feature rand_0_10 only.
impl UniformSampler for UniformBigInt
Available on crate feature
rand_0_10 only.Source§fn new<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error>
fn new<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error>
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) -> Result<Self, Error>
fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error>
Construct self, with inclusive bounds
[low, high]. Read moreSource§fn sample_single<R: Rng + ?Sized, B1, B2>(
low: B1,
high: B2,
rng: &mut R,
) -> Result<Self::X, Error>
fn sample_single<R: Rng + ?Sized, B1, B2>( low: B1, high: B2, rng: &mut R, ) -> Result<Self::X, Error>
Sample a single value uniformly from a range with inclusive lower bound
and exclusive upper bound
[low, high). Read moreSource§impl UniformSampler for UniformBigInt
Available on crate feature rand_0_9 only.
impl UniformSampler for UniformBigInt
Available on crate feature
rand_0_9 only.Source§fn new<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error>
fn new<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error>
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) -> Result<Self, Error>
fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Result<Self, Error>
Construct self, with inclusive bounds
[low, high]. Read moreSource§fn sample_single<R: Rng + ?Sized, B1, B2>(
low: B1,
high: B2,
rng: &mut R,
) -> Result<Self::X, Error>
fn sample_single<R: Rng + ?Sized, B1, B2>( low: B1, high: B2, rng: &mut R, ) -> Result<Self::X, Error>
Sample a single value uniformly from a range with inclusive lower bound
and exclusive upper bound
[low, high). Read moreAuto Trait Implementations§
impl Freeze for UniformBigInt
impl RefUnwindSafe for UniformBigInt
impl Send for UniformBigInt
impl Sync for UniformBigInt
impl Unpin for UniformBigInt
impl UnsafeUnpin for UniformBigInt
impl UnwindSafe for UniformBigInt
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