pub struct CodecCache { /* private fields */ }Implementations§
Source§impl CodecCache
impl CodecCache
Sourcepub fn ldpc(&self, code: LdpcCode) -> Arc<Ldpc> ⓘ
pub fn ldpc(&self, code: LdpcCode) -> Arc<Ldpc> ⓘ
Returns the Ldpc for code, building and caching it on first use.
Sourcepub fn bch(&self, t: usize, msg_bits: usize) -> Arc<Bch> ⓘ
pub fn bch(&self, t: usize, msg_bits: usize) -> Arc<Bch> ⓘ
Returns the shortened Bch correcting t errors with a msg_bits
message part, building and caching it on first use.
Sourcepub fn rs(&self, n: usize, n_parity: usize) -> Arc<ReedSolomon> ⓘ
pub fn rs(&self, n: usize, n_parity: usize) -> Arc<ReedSolomon> ⓘ
Returns the ReedSolomon code (n, n_parity), building and caching it
on first use.
Trait Implementations§
Source§impl Clone for CodecCache
impl Clone for CodecCache
Source§fn clone(&self) -> Self
fn clone(&self) -> Self
A cloned cache starts empty rather than copying entries — cache contents
are pure derivations of the codes used, rebuilt on demand, and this keeps
Clone free of a lock acquisition. (Only OfdmFrameMod derives Clone;
it is not exercised on a hot path.)
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CodecCache
impl Debug for CodecCache
Source§impl Default for CodecCache
impl Default for CodecCache
Source§fn default() -> CodecCache
fn default() -> CodecCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CodecCache
impl RefUnwindSafe for CodecCache
impl Send for CodecCache
impl Sync for CodecCache
impl Unpin for CodecCache
impl UnsafeUnpin for CodecCache
impl UnwindSafe for CodecCache
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