Skip to main content

FontFallbackChainTrait

Trait FontFallbackChainTrait 

Source
pub trait FontFallbackChainTrait:
    Clone
    + Send
    + Sync {
    // Required methods
    fn is_empty(&self) -> bool;
    fn primary_font_id(&self) -> Option<FontId>;
}
Expand description

Trait for font fallback chains

Required Methods§

Source

fn is_empty(&self) -> bool

Check if the chain is empty

Source

fn primary_font_id(&self) -> Option<FontId>

Get the primary font ID (if any)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§