pub struct CitationBuffer {
pub hot: Vec<String>,
pub roll_hash: String,
pub total: u64,
pub min_tick: Option<u64>,
pub max_tick: u64,
pub recent_keys: Vec<String>,
}Expand description
Mutable citation state buffer, replacing 6 separate mutable params.
Tracks the rolling hash, hot window, min/max tick, total count, and recent dedupe keys for bounded citation application.
Fields§
§hot: Vec<String>Most recent citation strings (bounded by hot_max).
roll_hash: StringRolling FNV-1a hash over all accepted citations.
total: u64Total number of accepted citations.
min_tick: Option<u64>Earliest tick seen. None until the first citation is accepted.
max_tick: u64Latest tick seen.
recent_keys: Vec<String>Recent citation dedupe keys (bounded by recent_keys_max).
Implementations§
Trait Implementations§
Source§impl Clone for CitationBuffer
impl Clone for CitationBuffer
Source§fn clone(&self) -> CitationBuffer
fn clone(&self) -> CitationBuffer
Returns a duplicate of the value. Read more
1.0.0 · 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 CitationBuffer
impl Debug for CitationBuffer
Auto Trait Implementations§
impl Freeze for CitationBuffer
impl RefUnwindSafe for CitationBuffer
impl Send for CitationBuffer
impl Sync for CitationBuffer
impl Unpin for CitationBuffer
impl UnsafeUnpin for CitationBuffer
impl UnwindSafe for CitationBuffer
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