Struct complex::c32
[−]
[src]
pub struct c32(pub f32, pub f32);
A complex number with 32-bit parts.
Trait Implementations
impl PartialEq for c32
[src]
fn eq(&self, __arg_0: &c32) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &c32) -> bool
This method tests for !=
.
impl Debug for c32
[src]
impl Copy for c32
[src]
impl Clone for c32
[src]
fn clone(&self) -> c32
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Number for c32
[src]
impl Complex for c32
[src]
type Real = f32
A real number.
fn new(re: Self::Real, im: Self::Real) -> c32
Create a complex number from a real and an imaginary part.
fn re(&self) -> Self::Real
Return the real part.
fn re_mut(&mut self) -> &mut Self::Real
Return the real part as a mutable reference.
fn im(&self) -> Self::Real
Return the imaginary part.
fn im_mut(&mut self) -> &mut Self::Real
Return the imaginary part as a mutable reference.
fn abs(&self) -> Self::Real
Compute the absolute value.
fn arg(&self) -> Self::Real
Compute the argument.
fn conj(&self) -> Self
Compute the complex conjugate.
impl Add for c32
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, rhs: Self) -> Self::Output
The method for the +
operator
impl Add<f32> for c32
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, rhs: f32) -> Self::Output
The method for the +
operator
impl Div for c32
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, rhs: Self) -> Self::Output
The method for the /
operator
impl Div<f32> for c32
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, rhs: f32) -> Self::Output
The method for the /
operator
impl Mul for c32
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, rhs: Self) -> Self::Output
The method for the *
operator
impl Mul<f32> for c32
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, rhs: f32) -> Self::Output
The method for the *
operator
impl Neg for c32
[src]
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self::Output
The method for the unary -
operator
impl Sub for c32
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, rhs: Self) -> Self::Output
The method for the -
operator