pub struct FecOpts<'a> {
pub bp_max_iter: u32,
pub osd_depth: u32,
pub ap_mask: Option<(&'a [u8], &'a [u8])>,
}Expand description
Options controlling FEC decoding depth / fall-backs.
This is deliberately a plain data struct rather than a trait — it describes
how to decode, not what code to use. Codecs ignore fields that don’t
apply (e.g. convolutional decoders ignore osd_depth).
Fields§
§bp_max_iter: u32Maximum belief-propagation iterations (LDPC).
osd_depth: u32Ordered-statistics-decoding search depth (0 disables OSD fallback).
ap_mask: Option<(&'a [u8], &'a [u8])>Optional a-priori hint: bits whose LLR should be clamped to a strong
known value before decoding. Some((mask, values)) where mask[i] == 1
means values[i] is locked to values[i].
Lifetime is per-call: the caller allocates the AP vectors for the
duration of this decode — typical usage builds a Vec<u8> from an
ApHint and borrows into FecOpts for a single decode_soft call.
Trait Implementations§
impl<'a> Copy for FecOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for FecOpts<'a>
impl<'a> RefUnwindSafe for FecOpts<'a>
impl<'a> Send for FecOpts<'a>
impl<'a> Sync for FecOpts<'a>
impl<'a> Unpin for FecOpts<'a>
impl<'a> UnsafeUnpin for FecOpts<'a>
impl<'a> UnwindSafe for FecOpts<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more