Type Alias rustradio::Complex

source ·
pub type Complex = Complex<Float>;
Expand description

Complex (I/Q) data.

Aliased Type§

struct Complex {
    pub re: f32,
    pub im: f32,
}

Fields§

§re: f32

Real portion of the complex number

§im: f32

Imaginary portion of the complex number

Trait Implementations§

source§

impl Sample for Complex

§

type Type = Complex<f32>

The type of the sample.
source§

fn size() -> usize

The serialized size of one sample.
source§

fn parse(data: &[u8]) -> Result<Self::Type>

Parse one sample.
source§

fn serialize(&self) -> Vec<u8>

Serialize one sample.
source§

impl Type for Complex

source§

fn type_string() -> &'static str

Return full type, or endianness prefix of the type.