Skip to main content

Map

Trait Map 

Source
pub trait Map {
    // Required method
    fn map_into(&self, bits: &Bits, out: &mut Symbols) -> Result<()>;

    // Provided method
    fn map(&self, bits: &Bits) -> Result<Symbols> { ... }
}
Expand description

Mapping of bits onto constellation symbols.

Required Methods§

Source

fn map_into(&self, bits: &Bits, out: &mut Symbols) -> Result<()>

Map bits into out.

§Errors

When the length of a stream is not a multiple of the bits per symbol.

Provided Methods§

Source

fn map(&self, bits: &Bits) -> Result<Symbols>

Map bits (allocates, calls Map::map_into).

§Errors

As Map::map_into.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§