pub struct Usage {
pub count: u32,
pub age: Duration,
pub recency_weight: f32,
pub score: f32,
}Expand description
One key’s usage history, rendered for a person rather than for the
ranker. See Frecency::explain.
Fields§
§count: u32Times this entry has been activated.
age: DurationHow long ago the most recent activation was.
recency_weight: f32What that age is currently worth, in 0.0..=1.0. The bucket edges
are why this moves in steps rather than smoothly.
score: f32Volume times recency — the raw number the boost is derived from, before it is normalised against the rest of the visible list.
Trait Implementations§
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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