pub struct ParagraphMetricsStats {
pub hits: usize,
pub misses: usize,
}Expand description
Cache hit/miss counts for one visible-layout build.
§Examples
use ailloli_ui_editor::layout::ParagraphMetricsStats;
let stats = ParagraphMetricsStats::default();
assert_eq!((stats.hits, stats.misses), (0, 0));Fields§
§hits: usizeParagraph metric entries reused from the cache.
misses: usizeParagraph metric entries computed and inserted.
Trait Implementations§
Source§impl Clone for ParagraphMetricsStats
impl Clone for ParagraphMetricsStats
Source§fn clone(&self) -> ParagraphMetricsStats
fn clone(&self) -> ParagraphMetricsStats
Returns a copy 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 ParagraphMetricsStats
impl Debug for ParagraphMetricsStats
Source§impl Default for ParagraphMetricsStats
impl Default for ParagraphMetricsStats
Source§fn default() -> ParagraphMetricsStats
fn default() -> ParagraphMetricsStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParagraphMetricsStats
impl PartialEq for ParagraphMetricsStats
impl Copy for ParagraphMetricsStats
impl Eq for ParagraphMetricsStats
impl StructuralPartialEq for ParagraphMetricsStats
Auto Trait Implementations§
impl Freeze for ParagraphMetricsStats
impl RefUnwindSafe for ParagraphMetricsStats
impl Send for ParagraphMetricsStats
impl Sync for ParagraphMetricsStats
impl Unpin for ParagraphMetricsStats
impl UnwindSafe for ParagraphMetricsStats
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.