pub struct TextMetricsCacheStats {
pub hits: u64,
pub misses: u64,
pub entries: usize,
}Expand description
What measure_text’s cache has done on this thread: a diagnostic, for an app that wants to
see whether its drawing is measuring the same strings over and over (it usually is).
Fields§
§hits: u64Measurements answered without asking the toolkit.
misses: u64Measurements that had to cross into the toolkit.
entries: usizeDistinct measurements currently held, across both generations.
Trait Implementations§
Source§impl Clone for TextMetricsCacheStats
impl Clone for TextMetricsCacheStats
impl Copy for TextMetricsCacheStats
Source§impl Debug for TextMetricsCacheStats
impl Debug for TextMetricsCacheStats
Source§impl Default for TextMetricsCacheStats
impl Default for TextMetricsCacheStats
impl Eq for TextMetricsCacheStats
Source§impl PartialEq for TextMetricsCacheStats
impl PartialEq for TextMetricsCacheStats
impl StructuralPartialEq for TextMetricsCacheStats
Auto Trait Implementations§
impl Freeze for TextMetricsCacheStats
impl RefUnwindSafe for TextMetricsCacheStats
impl Send for TextMetricsCacheStats
impl Sync for TextMetricsCacheStats
impl Unpin for TextMetricsCacheStats
impl UnsafeUnpin for TextMetricsCacheStats
impl UnwindSafe for TextMetricsCacheStats
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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