Skip to main content

FontLoader

Trait FontLoader 

Source
pub trait FontLoader {
    // Required method
    fn load(&mut self) -> Option<Font>;
}
Expand description

A FontLoader helps load a font from somewhere.

Required Methods§

Source

fn load(&mut self) -> Option<Font>

Loads a font.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§