#[non_exhaustive]pub struct TrieCacheStats {
pub entries: usize,
pub bytes: usize,
pub hits: u64,
pub misses: u64,
pub evictions: u64,
pub oversized_bypasses: u64,
}Expand description
Current retention plus cumulative traffic for a Compiler’s trie cache.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entries: usizeNumber of vocabulary tries currently retained.
bytes: usizeBytes currently retained across those entries.
hits: u64Lifetime cache hits.
misses: u64Lifetime cache misses (a trie was built).
evictions: u64Lifetime evictions (a retained trie dropped to make room for another).
oversized_bypasses: u64Lifetime builds too large to retain under the budget (built and used, never cached).
Trait Implementations§
Source§impl Clone for TrieCacheStats
impl Clone for TrieCacheStats
impl Copy for TrieCacheStats
Auto Trait Implementations§
impl Freeze for TrieCacheStats
impl RefUnwindSafe for TrieCacheStats
impl Send for TrieCacheStats
impl Sync for TrieCacheStats
impl Unpin for TrieCacheStats
impl UnsafeUnpin for TrieCacheStats
impl UnwindSafe for TrieCacheStats
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