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§
Sourcefn provide(&mut self, _window: &mut Window, _cx: &mut App) -> AnyImageCache
fn provide(&mut self, _window: &mut Window, _cx: &mut App) -> AnyImageCache
Called during the request_layout phase to create an ImageCache.