pub struct MruEntry {
pub last_used: SystemTime,
pub use_count: u32,
}Expand description
One MRU record: when the candidate was last accepted and how many times total. Frecency combines both terms.
Fields§
§last_used: SystemTime§use_count: u32Trait Implementations§
impl Copy for MruEntry
impl Eq for MruEntry
impl StructuralPartialEq for MruEntry
Auto Trait Implementations§
impl Freeze for MruEntry
impl RefUnwindSafe for MruEntry
impl Send for MruEntry
impl Sync for MruEntry
impl Unpin for MruEntry
impl UnsafeUnpin for MruEntry
impl UnwindSafe for MruEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.