dioxus_lib::prelude

Trait HasImageData

source
pub trait HasImageData: Any {
    // Required methods
    fn load_error(&self) -> bool;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description

A trait for any object that has the data for an image event

Required Methods§

source

fn load_error(&self) -> bool

If the renderer encountered an error while loading the image

source

fn as_any(&self) -> &(dyn Any + 'static)

return self as Any

Implementors§