pub trait DecodeFrom:
Sized
+ Clone
+ Copy
+ PartialEq
+ PartialOrd
+ Add
+ AddAssign
+ Neg<Output = Self>
+ Sub<Output = Self> {
// Required methods
fn one() -> Self;
fn zero() -> Self;
fn maxval() -> Self;
fn abs(&self) -> Self;
fn saturating_add(&self, other: Self) -> Self;
fn saturating_sub(&self, other: Self) -> Self;
fn hard_bit(&self) -> bool;
}
Expand description
Trait for types that the min-sum decoder can operate with.
Implemented for i8
, i16
, i32
, f32
, and f64
.
Required Methods§
Sourcefn saturating_add(&self, other: Self) -> Self
fn saturating_add(&self, other: Self) -> Self
Saturating add
Sourcefn saturating_sub(&self, other: Self) -> Self
fn saturating_sub(&self, other: Self) -> Self
Saturating sub
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.