Struct rofl::CachingLoader [] [src]

pub struct CachingLoader<L: Loader> { /* fields omitted */ }

A loader that keeps a cache of resources previously loaded.

Methods

impl<L: Loader> CachingLoader<L>
[src]

Wrap a Loader with a CachingLoader of given capacity.

impl<L: Loader> CachingLoader<L>
[src]

Returns a reference to the loader's cache.

Trait Implementations

impl<L: Loader> Loader for CachingLoader<L>
[src]

Type of resources that this loader can load.

Error that may occur while loading the resource.

Load the object from cache or fall back on the original Loader. Cache the objects loaded this way.

impl<L: Loader> Debug for CachingLoader<L>
[src]

Formats the value using the given formatter.