Trait LoadAsset

Source
pub trait LoadAsset: Sized {
    // Required methods
    fn load(geng: &Rc<Geng>, path: &str) -> AssetFuture<Self>;
    fn default_ext() -> Option<&'static str>;
}

Required Methods§

Source

fn load(geng: &Rc<Geng>, path: &str) -> AssetFuture<Self>

Source

fn default_ext() -> Option<&'static str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl LoadAsset for ()

Source§

fn load(_: &Rc<Geng>, _: &str) -> AssetFuture<()>

Source§

fn default_ext() -> Option<&'static str>

Source§

impl LoadAsset for String

Source§

fn load(geng: &Rc<Geng>, path: &str) -> AssetFuture<Self>

Source§

fn default_ext() -> Option<&'static str>

Source§

impl LoadAsset for Texture

Source§

fn load(geng: &Rc<Geng>, path: &str) -> AssetFuture<Self>

Source§

fn default_ext() -> Option<&'static str>

Implementors§

Source§

impl LoadAsset for Sound

Source§

impl<T> LoadAsset for Rc<T>
where T: LoadAsset + 'static,