pub struct SyndromBuffer {
pub entries: [SyndromeEntry; 1024],
pub head: u16,
pub count: u16,
pub current_round: u32,
/* private fields */
}Expand description
Rolling syndrome buffer (1024 rounds)
Fields§
§entries: [SyndromeEntry; 1024]Ring buffer of syndrome entries
head: u16Head pointer
count: u16Count of valid entries
current_round: u32Current round
Implementations§
Source§impl SyndromBuffer
impl SyndromBuffer
Sourcepub fn append(&mut self, entry: SyndromeEntry)
pub fn append(&mut self, entry: SyndromeEntry)
Append a syndrome entry
Sourcepub fn recent(&self, count: usize) -> impl Iterator<Item = &SyndromeEntry>
pub fn recent(&self, count: usize) -> impl Iterator<Item = &SyndromeEntry>
Get recent syndrome entries
Sourcepub const fn memory_size() -> usize
pub const fn memory_size() -> usize
Get memory size
Trait Implementations§
Source§impl Debug for SyndromBuffer
impl Debug for SyndromBuffer
Auto Trait Implementations§
impl Freeze for SyndromBuffer
impl RefUnwindSafe for SyndromBuffer
impl Send for SyndromBuffer
impl Sync for SyndromBuffer
impl Unpin for SyndromBuffer
impl UnwindSafe for SyndromBuffer
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> 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