pub struct MetaCacheEntry {
pub fingerprint: ContextFingerprint,
pub expert_weights: [f64; 4],
pub alpha: f64,
pub credit: f64,
pub last_used: u64,
}Expand description
Data structure representing meta cache entry.
Fields§
§fingerprint: ContextFingerprintFingerprint for this value.
expert_weights: [f64; 4]Expert weights for this value.
alpha: f64Alpha for this value.
credit: f64Credit for this value.
last_used: u64Most recent used.
Trait Implementations§
Source§impl Clone for MetaCacheEntry
impl Clone for MetaCacheEntry
Source§impl Debug for MetaCacheEntry
impl Debug for MetaCacheEntry
Source§impl<'de> Deserialize<'de> for MetaCacheEntry
impl<'de> Deserialize<'de> for MetaCacheEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for MetaCacheEntry
impl Freeze for MetaCacheEntry
impl Move for MetaCacheEntry
impl RefUnwindSafe for MetaCacheEntry
impl Send for MetaCacheEntry
impl Sync for MetaCacheEntry
impl Unpin for MetaCacheEntry
impl UnsafeUnpin for MetaCacheEntry
impl UnwindSafe for MetaCacheEntry
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