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) -> UniformBigUintwhere
B1: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
B2: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
fn new<B1, B2>(low_b: B1, high_b: B2) -> UniformBigUintwhere
B1: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
B2: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
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) -> UniformBigUintwhere
B1: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
B2: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
fn new_inclusive<B1, B2>(low_b: B1, high_b: B2) -> UniformBigUintwhere
B1: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
B2: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
Construct self, with inclusive bounds
[low, high]
. Read moreSource§fn sample<R>(&self, rng: &mut R) -> <UniformBigUint as UniformSampler>::X
fn sample<R>(&self, rng: &mut R) -> <UniformBigUint as UniformSampler>::X
Sample a value.
Source§fn sample_single<R, B1, B2>(
low: B1,
high: B2,
rng: &mut R,
) -> <UniformBigUint as UniformSampler>::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
B2: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
fn sample_single<R, B1, B2>(
low: B1,
high: B2,
rng: &mut R,
) -> <UniformBigUint as UniformSampler>::Xwhere
R: Rng + ?Sized,
B1: SampleBorrow<<UniformBigUint as UniformSampler>::X>,
B2: SampleBorrow<<UniformBigUint as UniformSampler>::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 UniformBigUint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)