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>
Sourcepub fn new(re: Re, im: Im) -> ComplexDistribution<Re, Im>
pub fn new(re: Re, im: Im) -> ComplexDistribution<Re, Im>
Creates a complex distribution from independent distributions of the real and imaginary parts.
Trait Implementations§
Source§impl<Re, Im> Clone for ComplexDistribution<Re, Im>
impl<Re, Im> 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<Re, Im> Debug for ComplexDistribution<Re, Im>
impl<Re, Im> Debug for ComplexDistribution<Re, Im>
Source§impl<T, Re, Im> Distribution<Complex<T>> for ComplexDistribution<Re, Im>
impl<T, Re, Im> Distribution<Complex<T>> for ComplexDistribution<Re, Im>
impl<Re, Im> Copy for ComplexDistribution<Re, Im>
Auto Trait Implementations§
impl<Re, Im> Freeze for ComplexDistribution<Re, Im>
impl<Re, Im> RefUnwindSafe for ComplexDistribution<Re, Im>where
Re: RefUnwindSafe,
Im: RefUnwindSafe,
impl<Re, Im> Send for ComplexDistribution<Re, Im>
impl<Re, Im> Sync for ComplexDistribution<Re, Im>
impl<Re, Im> Unpin for ComplexDistribution<Re, Im>
impl<Re, Im> UnwindSafe for ComplexDistribution<Re, Im>where
Re: UnwindSafe,
Im: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)