#[repr(C)]pub struct ComplexPolar {
pub abs: f32,
pub arg: f32,
}Expand description
A complex number in polar form.
Fields§
§abs: f32§arg: f32Implementations§
Trait Implementations§
Source§impl AbsDiffEq for ComplexPolar
impl AbsDiffEq for ComplexPolar
Source§fn default_epsilon() -> Self::Epsilon
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
Source§fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
fn abs_diff_eq(&self, other: &Self, epsilon: Self::Epsilon) -> bool
A test for equality that uses the absolute difference to compute the approximate
equality of two numbers.
Source§fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
fn abs_diff_ne(&self, other: &Rhs, epsilon: Self::Epsilon) -> bool
The inverse of
AbsDiffEq::abs_diff_eq.Source§impl Clone for ComplexPolar
impl Clone for ComplexPolar
Source§fn clone(&self) -> ComplexPolar
fn clone(&self) -> ComplexPolar
Returns a duplicate 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 Debug for ComplexPolar
impl Debug for ComplexPolar
Source§impl Display for ComplexPolar
impl Display for ComplexPolar
Source§impl Distribution<ComplexPolar> for StandardUniform
impl Distribution<ComplexPolar> for StandardUniform
Source§impl Div<ComplexPolar> for f32
impl Div<ComplexPolar> for f32
Source§type Output = ComplexPolar
type Output = ComplexPolar
The resulting type after applying the
/ operator.Source§impl Div<f32> for ComplexPolar
impl Div<f32> for ComplexPolar
Source§impl Div for ComplexPolar
impl Div for ComplexPolar
Source§impl DivAssign<f32> for ComplexPolar
impl DivAssign<f32> for ComplexPolar
Source§fn div_assign(&mut self, re: f32)
fn div_assign(&mut self, re: f32)
Performs the
/= operation. Read moreSource§impl DivAssign for ComplexPolar
impl DivAssign for ComplexPolar
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl From<f32> for ComplexPolar
impl From<f32> for ComplexPolar
Source§impl Mul<ComplexPolar> for f32
impl Mul<ComplexPolar> for f32
Source§type Output = ComplexPolar
type Output = ComplexPolar
The resulting type after applying the
* operator.Source§impl Mul<f32> for ComplexPolar
impl Mul<f32> for ComplexPolar
Source§impl Mul for ComplexPolar
impl Mul for ComplexPolar
Source§impl MulAssign<f32> for ComplexPolar
impl MulAssign<f32> for ComplexPolar
Source§fn mul_assign(&mut self, re: f32)
fn mul_assign(&mut self, re: f32)
Performs the
*= operation. Read moreSource§impl MulAssign for ComplexPolar
impl MulAssign for ComplexPolar
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl Neg for ComplexPolar
impl Neg for ComplexPolar
Source§impl PartialEq for ComplexPolar
impl PartialEq for ComplexPolar
Source§impl RelativeEq for ComplexPolar
impl RelativeEq for ComplexPolar
Source§fn default_max_relative() -> Self::Epsilon
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
Source§fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_eq( &self, other: &Self, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
A test for equality that uses a relative comparison if the values are far apart.
Source§fn relative_ne(
&self,
other: &Rhs,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon,
) -> bool
fn relative_ne( &self, other: &Rhs, epsilon: Self::Epsilon, max_relative: Self::Epsilon, ) -> bool
The inverse of
RelativeEq::relative_eq.Source§impl UlpsEq for ComplexPolar
impl UlpsEq for ComplexPolar
impl Copy for ComplexPolar
impl StructuralPartialEq for ComplexPolar
Auto Trait Implementations§
impl Freeze for ComplexPolar
impl RefUnwindSafe for ComplexPolar
impl Send for ComplexPolar
impl Sync for ComplexPolar
impl Unpin for ComplexPolar
impl UnwindSafe for ComplexPolar
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