Struct num_bigint::UniformBigInt
source · pub struct UniformBigInt { /* private fields */ }
Available on crate feature
rand
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 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 UniformBigInt
impl Debug for UniformBigInt
source§impl UniformSampler for UniformBigInt
impl UniformSampler for UniformBigInt
source§fn new<B1, B2>(low_b: B1, high_b: B2) -> Self
fn new<B1, B2>(low_b: B1, high_b: B2) -> Self
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) -> Self
fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> Self
Construct self, with inclusive bounds
[low, high]
. Read moresource§fn sample_single<R: Rng + ?Sized, B1, B2>(
low: B1,
high: B2,
rng: &mut R,
) -> Self::X
fn sample_single<R: Rng + ?Sized, B1, B2>( low: B1, high: B2, rng: &mut R, ) -> Self::X
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)