Trait gpui2::AssetSource
source · pub trait AssetSource: 'static + Send + Sync {
// Required methods
fn load(&self, path: &str) -> Result<Cow<'_, [u8]>>;
fn list(&self, path: &str) -> Result<Vec<SharedString>>;
}
pub trait AssetSource: 'static + Send + Sync {
// Required methods
fn load(&self, path: &str) -> Result<Cow<'_, [u8]>>;
fn list(&self, path: &str) -> Result<Vec<SharedString>>;
}