Skip to main content

ImageCacheProvider

Trait ImageCacheProvider 

Source
pub trait ImageCacheProvider: 'static {
    // Required method
    fn provide(&mut self, _window: &mut Window, _cx: &mut App) -> AnyImageCache;
}
Expand description

An object that can create an ImageCache during the render phase. See the ImageCache trait for more information.

Required Methods§

Source

fn provide(&mut self, _window: &mut Window, _cx: &mut App) -> AnyImageCache

Called during the request_layout phase to create an ImageCache.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§