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 Item
Type of resources that this loader can load.
type Err: Error
Error that may occur while loading the resource.
Required Methods
Implementors
impl<'pl> Loader for FileLoader<'pl>
impl<'fl> Loader for BytesLoader<'fl>
impl Loader for FontLoader
impl Loader for TemplateLoader
impl<L: Loader> Loader for CachingLoader<L>