[][src]Trait geng::LoadAsset

pub trait LoadAsset {
    fn load(
        geng: &Rc<Geng>,
        path: &str
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
;
fn default_ext() -> Option<&'static str>; }

Required methods

fn load(
    geng: &Rc<Geng>,
    path: &str
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'static>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;

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

Loading content...

Implementations on Foreign Types

impl LoadAsset for String[src]

impl LoadAsset for ()[src]

Loading content...

Implementors

impl LoadAsset for Texture2d<Color<f32>>[src]

impl LoadAsset for Sound[src]

impl<T> LoadAsset for Rc<T> where
    T: 'static + LoadAsset
[src]

Loading content...