Trait iced_graphics::image::storage::Storage
source · pub trait Storage {
type Entry: Entry;
type State<'a>;
// Required methods
fn upload(
&mut self,
width: u32,
height: u32,
data: &[u8],
state: &mut Self::State<'_>
) -> Option<Self::Entry>;
fn remove(&mut self, entry: &Self::Entry, state: &mut Self::State<'_>);
}
Expand description
Stores cached image data for use in rendering
Required Associated Types§
sourcetype State<'a>
type State<'a>
State provided to upload or remove a Self::Entry
.