pub struct UniformReal<T: SampleUniform>(/* private fields */);Expand description
Uniform RealImpl sampler
Trait Implementations§
Source§impl<T: Float + SampleUniform> UniformSampler for UniformReal<T>
impl<T: Float + SampleUniform> UniformSampler for UniformReal<T>
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: 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<T> Freeze for UniformReal<T>
impl<T> RefUnwindSafe for UniformReal<T>
impl<T> Send for UniformReal<T>
impl<T> Sync for UniformReal<T>
impl<T> Unpin for UniformReal<T>
impl<T> UnwindSafe for UniformReal<T>
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