Skip to main content

Resources

Trait Resources 

Source
pub trait Resources {
    // Required methods
    fn font(&self, id: FontId) -> Option<FontData>;
    fn image(&self, id: ImageId) -> Option<ImageData>;
}
Expand description

What the service’s decoder needs: the font and image an id stands for on this connection. None for an id the connection never registered.

Required Methods§

Source

fn font(&self, id: FontId) -> Option<FontData>

Source

fn image(&self, id: ImageId) -> Option<ImageData>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§