pub struct DecayCounter { /* private fields */ }Expand description
An evaporating access tally — a counter that is added to on access and decays geometrically over time.
This is recency-weighting for free: a steady stream of accesses holds the
value up, a burst that stops fades away, so the value tracks current
pressure without a separate windowing scheme. (Stigmergy: the same mechanic
as ant-trail pheromones — deposit on use, evaporate over time — and the
discounted-count cousin of SlidingWindowUcb1.)
Implementations§
Trait Implementations§
Source§impl Clone for DecayCounter
impl Clone for DecayCounter
Source§fn clone(&self) -> DecayCounter
fn clone(&self) -> DecayCounter
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 DecayCounter
impl Debug for DecayCounter
impl Copy for DecayCounter
Auto Trait Implementations§
impl Freeze for DecayCounter
impl RefUnwindSafe for DecayCounter
impl Send for DecayCounter
impl Sync for DecayCounter
impl Unpin for DecayCounter
impl UnsafeUnpin for DecayCounter
impl UnwindSafe for DecayCounter
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