Struct rds_tensors::types::complex::c32
[−]
[src]
#[repr(C)]pub struct c32 { pub re: f32, pub im: f32, }
Fields
re: f32
im: f32
Methods
impl c32
[src]
Trait Implementations
impl Clone for c32
[src]
fn clone(&self) -> c32
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for c32
[src]
impl Debug for c32
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Complex<f32> for c32
[src]
fn cartesian(re: f32, im: f32) -> c32
[src]
Create a complex from a set of cartesian coordinates.
fn polar(arg: f32, abs: f32) -> c32
[src]
Create a complex from a set of polar coordinates.
fn re(self) -> f32
[src]
Return the real part of the complex.
fn im(self) -> f32
[src]
Return the imaginary part of the complex.
fn abs(self) -> f32
[src]
Return the absolute value of the complex.
fn arg(self) -> f32
[src]
Return the argument of the complex.
fn conj(self) -> c32
[src]
Return the conjugate value of the complex.
fn reciprocal(self) -> c32
[src]
Return the reciprocal value of the complex.
fn to_polar(self) -> (T, T)
[src]
Return a tuple forming the polar coordinates of the complex (abs,arg).
impl Add for c32
[src]
type Output = c32
The resulting type after applying the +
operator.
fn add(self, rhs: c32) -> c32
[src]
Performs the +
operation.
impl AddAssign for c32
[src]
fn add_assign(&mut self, rhs: c32)
[src]
Performs the +=
operation.
impl Div for c32
[src]
type Output = c32
The resulting type after applying the /
operator.
fn div(self, rhs: c32) -> c32
[src]
Performs the /
operation.
impl DivAssign for c32
[src]
fn div_assign(&mut self, rhs: c32)
[src]
Performs the /=
operation.
impl Mul for c32
[src]
type Output = c32
The resulting type after applying the *
operator.
fn mul(self, rhs: c32) -> c32
[src]
Performs the *
operation.
impl MulAssign for c32
[src]
fn mul_assign(&mut self, rhs: c32)
[src]
Performs the *=
operation.
impl Neg for c32
[src]
type Output = c32
The resulting type after applying the -
operator.
fn neg(self) -> c32
[src]
Performs the unary -
operation.
impl Sub for c32
[src]
type Output = c32
The resulting type after applying the -
operator.
fn sub(self, rhs: c32) -> c32
[src]
Performs the -
operation.
impl SubAssign for c32
[src]
fn sub_assign(&mut self, rhs: c32)
[src]
Performs the -=
operation.
impl PartialEq<c32> for c32
[src]
fn eq(&self, rhs: &c32) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for c32
[src]
impl FromStr for c32
[src]
type Err = ParseFloatError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<c32, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more
impl Display for c32
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more