pub trait AssetSource {
// Required methods
fn open<'a>(
&'a self,
path: &str,
) -> Result<Box<dyn AssetRead + 'a>, AssetError>;
fn exists(&self, path: &str) -> bool;
fn list(&self, dir: &str) -> Result<AssetIter, AssetError>;
}
Expand description
Source of assets such as fonts or images.