pub struct LayoutCacheStats {
pub entries: usize,
pub hits: u64,
pub misses: u64,
pub hit_rate: f64,
}Expand description
Statistics about layout cache performance.
Fields§
§entries: usizeNumber of entries currently in the cache.
hits: u64Total cache hits since creation or last reset.
misses: u64Total cache misses since creation or last reset.
hit_rate: f64Hit rate as a fraction (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for LayoutCacheStats
impl Clone for LayoutCacheStats
Source§impl Debug for LayoutCacheStats
impl Debug for LayoutCacheStats
Auto Trait Implementations§
impl Forget for LayoutCacheStats
impl Freeze for LayoutCacheStats
impl Move for LayoutCacheStats
impl RefUnwindSafe for LayoutCacheStats
impl Send for LayoutCacheStats
impl Sync for LayoutCacheStats
impl Unpin for LayoutCacheStats
impl UnsafeUnpin for LayoutCacheStats
impl UnwindSafe for LayoutCacheStats
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