Trait asset_derive::Asset
source · pub trait Asset {
// Required methods
fn fetch(&self) -> Vec<u8>;
fn fetch_static(&self) -> &'static [u8] ⓘ;
}
Expand description
Trait to be derived by asset-derive
macro.
pub trait Asset {
// Required methods
fn fetch(&self) -> Vec<u8>;
fn fetch_static(&self) -> &'static [u8] ⓘ;
}
Trait to be derived by asset-derive
macro.