[][src]Trait labrador_ldpc::decoder::DecodeFrom

pub trait DecodeFrom: Sized + Clone + Copy + PartialEq + PartialOrd + Add + AddAssign + Neg<Output = Self> + Sub<Output = Self> {
    pub fn one() -> Self;
pub fn zero() -> Self;
pub fn maxval() -> Self;
pub fn abs(&self) -> Self;
pub fn saturating_add(&self, other: Self) -> Self; }

Trait for types that the min-sum decoder can operate with.

Implemented for i8, i16, i32, f32, and f64.

Required methods

pub fn one() -> Self[src]

1 in T

pub fn zero() -> Self[src]

0 in T

pub fn maxval() -> Self[src]

Maximum value T can represent

pub fn abs(&self) -> Self[src]

Absolute value of self

pub fn saturating_add(&self, other: Self) -> Self[src]

Saturating add

Loading content...

Implementors

impl DecodeFrom for f32[src]

impl DecodeFrom for f64[src]

impl DecodeFrom for i8[src]

impl DecodeFrom for i16[src]

impl DecodeFrom for i32[src]

Loading content...