Skip to main content

Modulate

Trait Modulate 

Source
pub trait Modulate<In = Symbols> {
    // Required method
    fn modulate_into(&self, x: &In, out: &mut Signal) -> Result<()>;

    // Provided method
    fn modulate(&self, x: &In) -> Result<Signal> { ... }
}
Expand description

Modulation of symbols onto a waveform: complex Symbols by default, or the Labels of a waveform that carries the index of a symbol (Modulate<Labels>).

Required Methods§

Source

fn modulate_into(&self, x: &In, out: &mut Signal) -> Result<()>

Modulate x into out.

§Errors

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

Provided Methods§

Source

fn modulate(&self, x: &In) -> Result<Signal>

Modulate x (allocates, calls Modulate::modulate_into).

§Errors

As Modulate::modulate_into.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§