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§fn clone(&self) -> LayoutCacheStats
fn clone(&self) -> LayoutCacheStats
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 moreSource§impl Debug for LayoutCacheStats
impl Debug for LayoutCacheStats
Source§impl Default for LayoutCacheStats
impl Default for LayoutCacheStats
Source§fn default() -> LayoutCacheStats
fn default() -> LayoutCacheStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LayoutCacheStats
impl RefUnwindSafe for LayoutCacheStats
impl Send for LayoutCacheStats
impl Sync for LayoutCacheStats
impl Unpin 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