pub struct PruneReport {
pub total_always: usize,
pub duplicate_groups: usize,
pub pruned: Vec<MemoryId>,
pub unpinned: Vec<MemoryId>,
pub capped: usize,
}Expand description
Outcome of a standing-rules (scope:always) cleanup pass.
Fields§
§total_always: usizeTotal scope:always memories found before cleanup.
duplicate_groups: usizeNumber of exact-content duplicate groups collapsed.
pruned: Vec<MemoryId>Exact-duplicate always-rules removed (the healthiest copy was kept).
unpinned: Vec<MemoryId>Auto-pinned always-rules un-pinned (the scope:always tag removed, the
memory kept so it is still recalled by relevance).
capped: usizeStanding rules demoted because the list exceeded always_max (lowest
salience first). Included in unpinned; counted separately for visibility.
Trait Implementations§
Source§impl Clone for PruneReport
impl Clone for PruneReport
Source§fn clone(&self) -> PruneReport
fn clone(&self) -> PruneReport
Returns a duplicate of the value. Read more
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 PruneReport
impl Debug for PruneReport
Source§impl Default for PruneReport
impl Default for PruneReport
Source§fn default() -> PruneReport
fn default() -> PruneReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PruneReport
impl RefUnwindSafe for PruneReport
impl Send for PruneReport
impl Sync for PruneReport
impl Unpin for PruneReport
impl UnsafeUnpin for PruneReport
impl UnwindSafe for PruneReport
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