Skip to main content

Demodulate

Trait Demodulate 

Source
pub trait Demodulate<Out = Symbols> {
    // Required method
    fn demodulate_into(&mut self, y: &Signal, out: &mut Out) -> Result<()>;

    // Provided method
    fn demodulate(&mut self, y: &Signal) -> Result<Out>
       where Out: Default { ... }
}
Expand description

Demodulation of a waveform back to symbols: complex Symbols by default, or the decided Labels of a waveform that carries the index of a symbol (Demodulate<Labels>).

Required Methods§

Source

fn demodulate_into(&mut self, y: &Signal, out: &mut Out) -> Result<()>

Demodulate y into out.

§Errors

When the number of samples does not fit the waveform structure.

Provided Methods§

Source

fn demodulate(&mut self, y: &Signal) -> Result<Out>
where Out: Default,

Demodulate y (allocates, calls Demodulate::demodulate_into).

§Errors

As Demodulate::demodulate_into.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§