Struct complex::c32 [] [src]

pub struct c32(pub f32, pub f32);

A complex number with 32-bit parts.

Trait Implementations

impl Number for c32

impl Complex for c32

type Real = f32

fn new(re: Self::Real, im: Self::Real) -> c32

fn from_polar(abs: Self::Real, arg: Self::Real) -> Self

fn re(&self) -> Self::Real

fn re_mut(&mut self) -> &mut Self::Real

fn im(&self) -> Self::Real

fn im_mut(&mut self) -> &mut Self::Real

fn abs(&self) -> Self::Real

fn arg(&self) -> Self::Real

fn to_polar(&self) -> (Self::Real, Self::Real)

fn conj(&self) -> Self

impl Add for c32

type Output = Self

fn add(self, rhs: Self) -> Self::Output

impl Add<f32> for c32

type Output = Self

fn add(self, rhs: f32) -> Self::Output

impl Div for c32

type Output = Self

fn div(self, rhs: Self) -> Self::Output

impl Div<f32> for c32

type Output = Self

fn div(self, rhs: f32) -> Self::Output

impl Mul for c32

type Output = Self

fn mul(self, rhs: Self) -> Self::Output

impl Mul<f32> for c32

type Output = Self

fn mul(self, rhs: f32) -> Self::Output

impl Neg for c32

type Output = Self

fn neg(self) -> Self::Output

impl Sub for c32

type Output = Self

fn sub(self, rhs: Self) -> Self::Output

impl Sub<f32> for c32

type Output = Self

fn sub(self, rhs: f32) -> Self::Output

Derived Implementations

impl PartialEq for c32

fn eq(&self, __arg_0: &c32) -> bool

fn ne(&self, __arg_0: &c32) -> bool

impl Debug for c32

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for c32

impl Clone for c32

fn clone(&self) -> c32

fn clone_from(&mut self, source: &Self)