Assets

Trait Assets 

Source
pub trait Assets:
    Send
    + Sync
    + 'static {
    // Required method
    fn get(&self, key: &AssetKey) -> Option<Cow<'_, [u8]>>;
}
Expand description

Represents a container of file assets that are retrievable during runtime.

Required Methods§

Source

fn get(&self, key: &AssetKey) -> Option<Cow<'_, [u8]>>

Get the content of the passed AssetKey.

Implementors§