pub struct CombinedCacheStats {
pub eval: CacheStats,
pub complex: CacheStats,
pub simplification: CacheStats,
}Expand description
Combined statistics for all cache types
Fields§
§eval: CacheStatsReal evaluation cache stats
complex: CacheStatsComplex evaluation cache stats
simplification: CacheStatsSimplification cache stats
Implementations§
Source§impl CombinedCacheStats
impl CombinedCacheStats
Sourcepub const fn total_size(&self) -> usize
pub const fn total_size(&self) -> usize
Get the total number of cached entries
Sourcepub const fn total_hits(&self) -> usize
pub const fn total_hits(&self) -> usize
Get the total number of cache hits
Sourcepub const fn total_misses(&self) -> usize
pub const fn total_misses(&self) -> usize
Get the total number of cache misses
Sourcepub fn overall_hit_rate(&self) -> f64
pub fn overall_hit_rate(&self) -> f64
Get the overall hit rate
Trait Implementations§
Source§impl Clone for CombinedCacheStats
impl Clone for CombinedCacheStats
Source§fn clone(&self) -> CombinedCacheStats
fn clone(&self) -> CombinedCacheStats
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 CombinedCacheStats
impl RefUnwindSafe for CombinedCacheStats
impl Send for CombinedCacheStats
impl Sync for CombinedCacheStats
impl Unpin for CombinedCacheStats
impl UnwindSafe for CombinedCacheStats
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more