pub struct FontCatalog {
pub families: Vec<String>,
pub revision: u64,
}Expand description
Best-effort font family catalog for settings UIs.
This is populated by the runner from the renderer’s text backend and is platform-dependent by design.
Fields§
§families: Vec<String>§revision: u64Monotonic revision that increments when the effective catalog contents change.
Refresh attempts that yield the same catalog should not bump this revision, to avoid spurious invalidation and UI churn.
Trait Implementations§
Source§impl Clone for FontCatalog
impl Clone for FontCatalog
Source§fn clone(&self) -> FontCatalog
fn clone(&self) -> FontCatalog
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 FontCatalog
impl Debug for FontCatalog
Source§impl Default for FontCatalog
impl Default for FontCatalog
Source§fn default() -> FontCatalog
fn default() -> FontCatalog
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FontCatalogwhere
FontCatalog: Default,
impl<'de> Deserialize<'de> for FontCatalogwhere
FontCatalog: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FontCatalog
impl PartialEq for FontCatalog
Source§impl Serialize for FontCatalog
impl Serialize for FontCatalog
impl Eq for FontCatalog
impl StructuralPartialEq for FontCatalog
Auto Trait Implementations§
impl Freeze for FontCatalog
impl RefUnwindSafe for FontCatalog
impl Send for FontCatalog
impl Sync for FontCatalog
impl Unpin for FontCatalog
impl UnsafeUnpin for FontCatalog
impl UnwindSafe for FontCatalog
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