Struct num_complex::ComplexDistribution
source · pub struct ComplexDistribution<Re, Im = Re> { /* private fields */ }
Expand description
A generic random value distribution for complex numbers.
Implementations§
source§impl<Re, Im> ComplexDistribution<Re, Im>
impl<Re, Im> ComplexDistribution<Re, Im>
Trait Implementations§
source§impl<Re: Clone, Im: Clone> Clone for ComplexDistribution<Re, Im>
impl<Re: Clone, Im: Clone> Clone for ComplexDistribution<Re, Im>
source§fn clone(&self) -> ComplexDistribution<Re, Im>
fn clone(&self) -> ComplexDistribution<Re, Im>
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, 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>,
source§fn 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.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§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.