pub struct UniformZq(/* private fields */);
Trait Implementations§
Source§impl UniformSampler for UniformZq
impl UniformSampler for UniformZq
Source§fn new<B1, B2>(low: B1, high: B2) -> Result<Self, Error>
fn new<B1, B2>(low: B1, high: B2) -> Result<Self, Error>
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read moreSource§fn new_inclusive<B1, B2>(low: B1, high: B2) -> Result<Self, Error>
fn new_inclusive<B1, B2>(low: B1, high: B2) -> Result<Self, Error>
Construct self, with inclusive bounds
[low, high]
. Read moreSource§fn sample_single<R, B1, B2>(
low: B1,
high: B2,
rng: &mut R,
) -> Result<Self::X, Error>
fn sample_single<R, 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 moreimpl Copy for UniformZq
Auto Trait Implementations§
impl Freeze for UniformZq
impl RefUnwindSafe for UniformZq
impl Send for UniformZq
impl Sync for UniformZq
impl Unpin for UniformZq
impl UnwindSafe for UniformZq
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