pub trait ComplexExt<T, U> {
// Required methods
fn from_angle(angle: T) -> Self;
fn abs_sqr(&self) -> U;
fn log2(&self) -> T;
fn arg(&self) -> T;
fn saturating_add(&self, other: Self) -> Self;
fn saturating_sub(&self, other: Self) -> Self;
}
Expand description
Complex extension trait offering DSP (fast, good accuracy) functionality.
Required Methods§
sourcefn from_angle(angle: T) -> Self
fn from_angle(angle: T) -> Self
Unit magnitude from angle
sourcefn saturating_add(&self, other: Self) -> Self
fn saturating_add(&self, other: Self) -> Self
Staturating addition
sourcefn saturating_sub(&self, other: Self) -> Self
fn saturating_sub(&self, other: Self) -> Self
Saturating subtraction
Object Safety§
This trait is not object safe.