pub struct UniformNotNan<T>(/* private fields */);
Expand description
A sampler for a uniform distribution
Trait Implementations§
Source§impl<T: Clone> Clone for UniformNotNan<T>
impl<T: Clone> Clone for UniformNotNan<T>
Source§fn clone(&self) -> UniformNotNan<T>
fn clone(&self) -> UniformNotNan<T>
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<T: Debug> Debug for UniformNotNan<T>
impl<T: Debug> Debug for UniformNotNan<T>
Source§impl<T> PartialEq for UniformNotNan<T>where
UniformFloat<T>: PartialEq,
impl<T> PartialEq for UniformNotNan<T>where
UniformFloat<T>: PartialEq,
Source§impl UniformSampler for UniformNotNan<f32>
impl UniformSampler for UniformNotNan<f32>
Source§fn new<B1, B2>(low: B1, high: B2) -> Self
fn new<B1, B2>(low: B1, high: B2) -> Self
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read moreSource§fn new_inclusive<B1, B2>(low: B1, high: B2) -> Self
fn new_inclusive<B1, B2>(low: B1, high: B2) -> Self
Construct self, with inclusive bounds
[low, high]
. Read moreSource§fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::X
fn sample_single<R, 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 moreSource§impl UniformSampler for UniformNotNan<f64>
impl UniformSampler for UniformNotNan<f64>
Source§fn new<B1, B2>(low: B1, high: B2) -> Self
fn new<B1, B2>(low: B1, high: B2) -> Self
Construct self, with inclusive lower bound and exclusive upper bound
[low, high)
. Read moreSource§fn new_inclusive<B1, B2>(low: B1, high: B2) -> Self
fn new_inclusive<B1, B2>(low: B1, high: B2) -> Self
Construct self, with inclusive bounds
[low, high]
. Read moreSource§fn sample_single<R, B1, B2>(low: B1, high: B2, rng: &mut R) -> Self::X
fn sample_single<R, 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 moreimpl<T: Copy> Copy for UniformNotNan<T>
Auto Trait Implementations§
impl<T> Freeze for UniformNotNan<T>where
T: Freeze,
impl<T> RefUnwindSafe for UniformNotNan<T>where
T: RefUnwindSafe,
impl<T> Send for UniformNotNan<T>where
T: Send,
impl<T> Sync for UniformNotNan<T>where
T: Sync,
impl<T> Unpin for UniformNotNan<T>where
T: Unpin,
impl<T> UnwindSafe for UniformNotNan<T>where
T: UnwindSafe,
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