Trait rofl::Loader [] [src]

pub trait Loader {
    type Item;
    type Err: Error;
    fn load<'n>(&self, name: &'n str) -> Result<Self::Item, Self::Err>;
}

Loader of resources from some external source.

Associated Types

Type of resources that this loader can load.

Error that may occur while loading the resource.

Required Methods

Load a resource of given name.

Implementors