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

Creates the AnyImageCache for an image_cache element.

An Entity of an ImageCache implements it, and so does the provider from retain_all.

Required Methods§

Source

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

Returns the cache for the children of an image_cache element.

Called in both the layout and the paint phase.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§