pub struct MetricGeneration(/* private fields */);Expand description
Monotonic generation counter for metric cache invalidation.
Each font metric change increments the generation. Caches compare their stored generation against the current one to detect staleness.
Implementations§
Trait Implementations§
Source§impl Clone for MetricGeneration
impl Clone for MetricGeneration
Source§fn clone(&self) -> MetricGeneration
fn clone(&self) -> MetricGeneration
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 MetricGeneration
impl Debug for MetricGeneration
Source§impl Default for MetricGeneration
impl Default for MetricGeneration
Source§fn default() -> MetricGeneration
fn default() -> MetricGeneration
Returns the “default value” for a type. Read more
Source§impl Display for MetricGeneration
impl Display for MetricGeneration
Source§impl Hash for MetricGeneration
impl Hash for MetricGeneration
Source§impl Ord for MetricGeneration
impl Ord for MetricGeneration
Source§fn cmp(&self, other: &MetricGeneration) -> Ordering
fn cmp(&self, other: &MetricGeneration) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetricGeneration
impl PartialEq for MetricGeneration
Source§impl PartialOrd for MetricGeneration
impl PartialOrd for MetricGeneration
impl Copy for MetricGeneration
impl Eq for MetricGeneration
impl StructuralPartialEq for MetricGeneration
Auto Trait Implementations§
impl Freeze for MetricGeneration
impl RefUnwindSafe for MetricGeneration
impl Send for MetricGeneration
impl Sync for MetricGeneration
impl Unpin for MetricGeneration
impl UnsafeUnpin for MetricGeneration
impl UnwindSafe for MetricGeneration
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