pub struct NonZero;
Expand description
Distribution that only guarantees to produce an element which norm is greater than epsilon.
Trait Implementations
sourceimpl<T: Float> Distribution<Complex<T>> for NonZero where
NonZero: Distribution<Vector<T, 2>>,
impl<T: Float> Distribution<Complex<T>> for NonZero where
NonZero: Distribution<Vector<T, 2>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Complex<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T: Float> Distribution<Quaternion<T>> for NonZero where
NonZero: Distribution<Vector<T, 4>>,
impl<T: Float> Distribution<Quaternion<T>> for NonZero where
NonZero: Distribution<Vector<T, 4>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Quaternion<T>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
sourceimpl<T: Float, const N: usize> Distribution<Vector<T, N>> for NonZero where
Normal: Distribution<Vector<T, N>>,
impl<T: Float, const N: usize> Distribution<Vector<T, N>> for NonZero where
Normal: Distribution<Vector<T, N>>,
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N>
Generate a random value of T
, using rng
as the source of randomness.
sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T> where
R: Rng,
Create an iterator that generates random values of T
, using rng
as
the source of randomness. Read more
Auto Trait Implementations
impl RefUnwindSafe for NonZero
impl Send for NonZero
impl Sync for NonZero
impl Unpin for NonZero
impl UnwindSafe for NonZero
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more