Skip to main content

ThreadSafeFont

Trait ThreadSafeFont 

Source
pub trait ThreadSafeFont:
    Font
    + Send
    + Sync { }
Expand description

Basically just a wrapper for ab_glyph::Font that also implements Send and Sync. As far as I know, all ab_glyph fonts already implement Send and Sync, but the Font trait for some reason doesn’t

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§