pub trait Storage {
    type Entry: Entry;
    type State<'a>;

    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§

The type of an Entry in the Storage.

State provided to upload or remove a Self::Entry.

Required Methods§

Upload the image data of a Self::Entry.

Romve a Self::Entry from the Storage.

Implementors§