Struct num_complex::ComplexDistribution
source · [−]pub struct ComplexDistribution<Re, Im = Re> { /* private fields */ }
Expand description
A generic random value distribution for complex numbers.
Implementations
sourceimpl<Re, Im> ComplexDistribution<Re, Im>
impl<Re, Im> ComplexDistribution<Re, Im>
Trait Implementations
sourceimpl<Re: Clone, Im: Clone> Clone for ComplexDistribution<Re, Im>
impl<Re: Clone, Im: Clone> Clone for ComplexDistribution<Re, Im>
sourcefn clone(&self) -> ComplexDistribution<Re, Im>
fn clone(&self) -> ComplexDistribution<Re, Im>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Re: Debug, Im: Debug> Debug for ComplexDistribution<Re, Im>
impl<Re: Debug, Im: Debug> Debug for ComplexDistribution<Re, Im>
sourceimpl<T, Re, Im> Distribution<Complex<T>> for ComplexDistribution<Re, Im> where
T: Num + Clone,
Re: Distribution<T>,
Im: Distribution<T>,
impl<T, Re, Im> Distribution<Complex<T>> for ComplexDistribution<Re, Im> where
T: Num + Clone,
Re: Distribution<T>,
Im: Distribution<T>,
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
impl<Re: Copy, Im: Copy> Copy for ComplexDistribution<Re, Im>
Auto Trait Implementations
impl<Re, Im> RefUnwindSafe for ComplexDistribution<Re, Im> where
Im: RefUnwindSafe,
Re: RefUnwindSafe,
impl<Re, Im> Send for ComplexDistribution<Re, Im> where
Im: Send,
Re: Send,
impl<Re, Im> Sync for ComplexDistribution<Re, Im> where
Im: Sync,
Re: Sync,
impl<Re, Im> Unpin for ComplexDistribution<Re, Im> where
Im: Unpin,
Re: Unpin,
impl<Re, Im> UnwindSafe for ComplexDistribution<Re, Im> where
Im: UnwindSafe,
Re: UnwindSafe,
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more