Struct dashu_int::rand::UniformIBig
source · pub struct UniformIBig { /* private fields */ }
Expand description
The back-end implementing UniformSampler for IBig.
See the module (rand) level documentation for examples.
Trait Implementations§
source§impl UniformSampler for UniformIBig
impl UniformSampler for UniformIBig
source§fn new<B1, B2>(low: B1, high: B2) -> UniformIBigwhere
B1: SampleBorrow<IBig>,
B2: SampleBorrow<IBig>,
fn new<B1, B2>(low: B1, high: B2) -> UniformIBigwhere B1: SampleBorrow<IBig>, B2: SampleBorrow<IBig>,
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read moresource§fn new_inclusive<B1, B2>(low: B1, high: B2) -> UniformIBigwhere
B1: SampleBorrow<IBig>,
B2: SampleBorrow<IBig>,
fn new_inclusive<B1, B2>(low: B1, high: B2) -> UniformIBigwhere B1: SampleBorrow<IBig>, B2: SampleBorrow<IBig>,
Construct self, with inclusive bounds
[low, high]
. Read moresource§fn sample_single<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<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 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 UniformIBig
impl Send for UniformIBig
impl Sync for UniformIBig
impl Unpin for UniformIBig
impl UnwindSafe for UniformIBig
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