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>>;
}

Required Methods§

source

fn load(&self, path: &str) -> Result<Cow<'_, [u8]>>

source

fn list(&self, path: &str) -> Result<Vec<SharedString>>

Implementations on Foreign Types§

source§

impl AssetSource for ()

source§

fn load(&self, path: &str) -> Result<Cow<'_, [u8]>>

source§

fn list(&self, _path: &str) -> Result<Vec<SharedString>>

Implementors§