pub struct IncrementalMemo {
pub last_eval_count: u64,
pub last_memo_hits: u64,
/* private fields */
}Expand description
Memo store for incremental evaluation (C-055, spec/performance.md
§2): fingerprint → evaluated value plus the diagnostics produced
while evaluating it. Reused across evaluate_incremental calls.
Telemetry (last_*) refreshes every call. The store is bounded
(see the cap in evaluate_incremental): clearing it only loses
hits, never correctness.
Deliberately NOT derive(Debug): the store holds evaluated
values (including plaintext intermediates), and a derived dump
would print document content into any log that formats the
memo. The manual impl below reports shape only — entry count
and telemetry. Secret-kind values additionally carry Value’s
own redacting Debug wherever else they are formatted.
Fields§
§last_eval_count: u64§last_memo_hits: u64Trait Implementations§
Source§impl Debug for IncrementalMemo
impl Debug for IncrementalMemo
Auto Trait Implementations§
impl Freeze for IncrementalMemo
impl RefUnwindSafe for IncrementalMemo
impl Send for IncrementalMemo
impl Sync for IncrementalMemo
impl Unpin for IncrementalMemo
impl UnsafeUnpin for IncrementalMemo
impl UnwindSafe for IncrementalMemo
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