Struct CacheStatistics
pub struct CacheStatistics {
pub cache_size: usize,
pub cache_hits: usize,
pub cache_misses: usize,
pub hit_rate: f64,
}Expand description
Cache statistics for the pattern matcher
Fields§
§cache_size: usizeCurrent size of the cache in entries
cache_hits: usizeNumber of cache hits
cache_misses: usizeNumber of cache misses
hit_rate: f64Cache hit rate as a percentage
Trait Implementations§
§impl Clone for CacheStatistics
impl Clone for CacheStatistics
§fn clone(&self) -> CacheStatistics
fn clone(&self) -> CacheStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CacheStatistics
impl RefUnwindSafe for CacheStatistics
impl Send for CacheStatistics
impl Sync for CacheStatistics
impl Unpin for CacheStatistics
impl UnwindSafe for CacheStatistics
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