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§
fn font(&self, id: FontId) -> Option<FontData>
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".