Skip to main content

Decode

Trait Decode 

Source
pub trait Decode {
    // Required method
    fn decode_into(&mut self, llr: &Llr, out: &mut Bits) -> Result<()>;

    // Provided method
    fn decode(&mut self, llr: &Llr) -> Result<Bits> { ... }
}
Expand description

Channel decoding of log-likelihood ratios into information bits.

Required Methods§

Source

fn decode_into(&mut self, llr: &Llr, out: &mut Bits) -> Result<()>

Decode llr into out.

§Errors

When the length of llr is not a multiple of the codeword length.

Provided Methods§

Source

fn decode(&mut self, llr: &Llr) -> Result<Bits>

Decode llr (allocates, calls Decode::decode_into).

§Errors

As Decode::decode_into.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§